Click or drag to resize

LogicalNodeViewModel class

ViewModel for a node in the TreeView in LogicalTaskTreeControl
Inheritance hierarchy

Namespace: Vishnu.ViewModel
Assembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public class LogicalNodeViewModel : VishnuViewModelBase,
	 
	IExpandableNode, IDisposable

The LogicalNodeViewModel Type exposes the following members.

Constructors
 NameDescription of the
Public MethodLogicalNodeViewModel Constructor
Back to the top
Properties
 NameDescription of the
Public PropertyChildOrientation Defines whether the child elements of this node should be arranged horizontally or vertically.
Public PropertyChildren The children of the current node.
Public PropertyClearInfos Command for the ContextMenuItem "Delete info" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyCollapsedEventCommand Serves as the first binding anchor for the attached property ExpanderBehavior.CollapsedCommandProperty.
Public PropertyCopyToolTipInfoToClipboard Command for the Copy button in the ToolTip of the control.
(Inherited from VishnuViewModelBase)
Public PropertyDebugMode Additional test outputs can be made for True. Default: False.
Public PropertyDebugNodeInfos Name + (Id + ReferencedNodeId, if applicable) of the originally referenced SingleNode.
Public PropertyExpandedEventCommand Serves as the first binding anchor for the attached property ExpanderBehavior.ExpandedCommandProperty.
Public PropertyFreeComment Free text for any application.
Public PropertyGridColumn Returns or sets the column in the containing grid for the current element.
(Inherited from VishnuViewModelBase)
Public PropertyGridRow Returns or sets the row in the containing grid for the current element.
(Inherited from VishnuViewModelBase)
Public PropertyHasParent False only for the root node.
Public PropertyHookedTo Contains TreeParams.Name and IdInfo of the node in whose events this node is located. LogicalNodeViewModel or the text "NULL".
Public PropertyId The identifier of the associated LogicalTaskTree node made available for the UI.
Public PropertyIsExpanded True if the TreeView node that is connected to this node is folded out.
Public PropertyIsInSleepTime Returns true if a rest period defined by the user is currently in progress. for Vishnu actors (checkers) is running.
Public PropertyIsRendered Indicates whether the associated control has been completely drawn.
(Inherited from VishnuViewModelBase)
Public PropertyIsSelected True if the TreeView node that is connected to this node is associated with is selected.
Public PropertyIsSnapshotDummy True indicates that it is a node within the of a loaded snapshot.
Public PropertyIsTreePaused Returns true if the tree has just been paused.
Public PropertyJobInProgress Indicates that a ui-triggered background progress is actually running.
(Inherited from VishnuViewModelBase)
Public PropertyLastExceptions Lists possible exceptions of the child nodes in a string separated by a line break.
Public PropertyLastExecutingTreeEvent The last triggering TreeEvent (for TreeEvent-triggered nodes) or zero.
Public PropertyLastNotNullLogical Flag field for the last state of Logical that was not zero; Is required so that workers are only started when the The display changes when the status of Logical changes significantly. has changed and not every time the checker works (Logical = zero).
Public PropertyLastRun Time of the last start of the node.
Public PropertyLastRunInfo Time of the last start of the node as a string.
Public PropertyLogical The logical result of the associated LogicalTaskTree node made available for the UI.
Public PropertyLogLogicalTaskTree Command for the ContextMenuItem "Log Tree" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyName The name of the associated LogicalTaskTree node made available for the UI.
Public PropertyNextRun Time of the next start of the node (if known) or DateTime.MinValue.
Public PropertyNextRunInfo Info text about the next start of the node (if known) or null.
Public PropertyNextRunInfoAndResult Combined output of NextRunInfo (when is the next run) and Result (in full length).
Public PropertyNodeEnvironment List with all result objects of the subtree's predecessors.
Public PropertyOriginalNodeId Id of the originally referenced SingleNode.
Public PropertyParent The parent node in the ViewModel.
Public PropertyParentView The control for this ViewModel.
(Inherited from VishnuViewModelBase)
Public PropertyPath The unique path of the associated LogicalTaskTree node.
Public PropertyPauseResumeLogicalTaskTree Command for the ContextMenuItem "Pause Tree" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyProgress A text for the number of completed end nodes of this subtree for display in the ProgressBar (usually nnn%) for the UI.
Public PropertyProgressText A text for the number of completed end nodes of this subtree for display in the ProgressBar (usually nnn%) for the UI.
Public PropertyReloadLogicalTaskTree Command for the ContextMenuItem "Reload" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyResult The ReturnObject of the assigned LogicalNode.
(Overwrites VishnuViewModelBaseResult)
Public PropertyResults List of ReturnObjects of the assigned LogicalNode and its children.
Public PropertyRootJobListViewModel Returns the root job list valid for the node.
Public PropertyRootLogicalTaskTreeViewModel ViewModel of the superordinate LogicalTaskTree.
(Inherited from VishnuViewModelBase)
Public PropertyShortResult Short text for exceptions of the assigned LogicalNode.
Public PropertyShowInfos Command for the ContextMenuItem "Show info" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyShowLogLogicalTaskTree Command for the ContextMenuItem "Show Log" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyShowSettingsLogicalTaskTree Command for the ContextMenuItem "Show Settings" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertyShowVishnuHelp Command for the ContextMenuItem "Show Vishnu Help" in the ContextMenu for the "MainGrid" of the control.
(Inherited from VishnuViewModelBase)
Public PropertySingleNodes The number of end nodes of this subtree made available for the UI.
Public PropertySingleNodesFinished The number of terminated end nodes of this subtree made available for the UI.
Public PropertySizeChangedEventCommand Serves as the first binding anchor for the attached property ExpanderBehavior.CollapsedCommandProperty.
Public PropertySleepTimeTo The end of a possible rest period as a formatted string.
Public PropertyStartTreeOrientation Alignment of the tree when starting the application. AlternatingHorizontal: Alternating structure, starting horizontally (default). Vertical: Vertical structure. Horizontal: Horizontal structure. AlternatingVertical: Alternating structure, starting vertically.
Public PropertySwitchTaskTreeView Command for switching the tree display.
(Inherited from VishnuViewModelBase)
Public PropertyToolTipInfo Returns the result of GetToolTipInfo(). This routine points to NextRunInfoAndResult by default, can be overwritten if necessary.
(Inherited from VishnuViewModelBase)
Public PropertyTreeParams Additional parameters that are valid for the entire tree or null.
Protected PropertyUIDispatcher The main dispatcher thread.
Protected PropertyUIMain The MainWindow.
Public PropertyUserControlPath The path to the UserControl currently to be loaded dynamically.
Public PropertyUserDataContext Binding to an optional, specific user view model.
(Inherited from VishnuViewModelBase)
Public PropertyVisibility Indicates whether the element is visible, hidden or collapsed.
Public PropertyVisualState Sufficient for a possibly from several technical sources combined state as an enumeration type to the GUI (and the IValueConverter). Default: None
Public PropertyVisualTreeCacheBreaker Unique GlobalUniqueIdentifier. Is assigned in the constructor and flows into the overwritten Equals method. This ensures that after reloading parts of the LogicalTaskTree and restarting Reload from previous states of the LogicalTaskTree Elements of the original LogicalTaskTree cached VisualTree instead of the newly loaded elements in the new VisualTree.
(Inherited from VishnuViewModelBase)
Public PropertyWorkersState Combined NodeWorkerState for all assigned NodeWorkers.
Back to the top
Methods
 NameDescription of the
Public MethodCanClearInfosExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanClearInfosExecute)
Public MethodCanHandleExpanderExpandedEvent Execution permission for the event handler for opening the expander.
Public MethodCanLogTaskTreeExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanLogTaskTreeExecute)
Public MethodCanPauseResumeTaskTreeExecute Returns true if the function is executable, in this case always true. Can be overwritten at a suitable point.
(Inherited from VishnuViewModelBase)
Public MethodCanReloadTaskTreeExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanReloadTaskTreeExecute)
Public MethodCanShowInfosExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanShowInfosExecute)
Public MethodCanShowLogExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanShowLogExecute)
Public MethodCanShowSettingsExecute Returns true if the function is executable.
(Overwrites VishnuViewModelBaseCanShowSettingsExecute)
Public MethodCanShowVishnuHelpExecute Returns true if the function is executable, in this case always true.
(Inherited from VishnuViewModelBase)
Public MethodcanSwitchTaskTreeViewExecute Checks whether the tree alignment may be changed. Here: always returns true.
(Inherited from VishnuViewModelBase)
Public MethodClearInfosExecute Deletes any existing Vishnu information (messages and logs).
(Overwrites VishnuViewModelBaseClearInfosExecute(Object))
Public MethodCollapseTree Collapses the ViewModel branch and thus also the TreeView (because of the associated nodes).
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) Final theses.
Public MethodDoClearInfos Deletes any existing Vishnu information (messages and logs).
Public MethodDoShowInfos Brings any existing Vishnu information (messages and logs) to the foreground.
Public MethodEquals Compares the content of this LogicalNodeViewModel according to logical aspects with the content of a transferred LogicalNodeViewModel.
(Overwrites VishnuViewModelBaseEquals(Object))
Public MethodExpandTree Folds out the ViewModel tree completely and thus also the TreeView (because of the associated nodes).
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Overwrites ObjectFinalise)
Public MethodGetDebugNodeInfos Returns a string for debugging purposes.
(Overwrites VishnuViewModelBaseGetDebugNodeInfos)
Public MethodGetHashCode Generates a hash code for this LogicalNodeViewModel.
(Overwrites VishnuViewModelBaseGetHashCode)
Public MethodGetLogicalNode Returns the assigned logicalNode from the BusinessLogic.
Protected MethodGetToolTipInfo Returns the result for the ToolTipInfo property. This routine points to NextRunInfoAndResult by default, can be overwritten if necessary.
(Overwrites VishnuViewModelBaseGetToolTipInfo)
Public MethodGetTopRootJobListViewModel Returns the topmost Root-JobList valid for the node.
Public MethodHandleExpanderCollapsedEvent Event handler for closing the expander.
Public MethodHandleExpanderExpandedEvent Event handler for opening the expander.
Public MethodHandleExpanderSizeChangedEvent Event handler for resizing the expander.
Public MethodInvalidate Assigns a new GlobalUniqueIdentifier for the VisualTreeCacheBreaker.
(Inherited from VishnuViewModelBase)
Protected MethodLoadChildren Loads the children of a node.
Public MethodLogTaskTree Reloads the entire tree including JobDescription.xml asynchronously.
Public MethodLogTaskTreeExecute Logs the tree.
(Overwrites VishnuViewModelBaseLogTaskTreeExecute(Object))
Protected MethodOnPropertyChanged Reports for the UI when a property has changed.
(Inherited from ObservableObject)
Protected MethodParentViewToBL Saves a reference to the associated Control in the business logic.
(Overwrites VishnuViewModelBaseParentViewToBL(FrameworkElement))
Public MethodPauseResumeTaskTreeExecute Toggle switch - stops the tree or keeps it running.
(Inherited from VishnuViewModelBase)
Public MethodRaisePropertyChanged(String) Triggers OnPropertyChanged.
(Inherited from ObservableObject)
Public MethodRaisePropertyChangedT(ExpressionFuncT) Triggers OnPropertyChanged.
(Inherited from ObservableObject)
Protected MethodRefreshTreeView Updates the display of a subtree.
Public MethodReloadTaskTree Reloads the entire tree including JobDescription.xml asynchronously.
Public MethodReloadTaskTreeExecute Reloads the tree after changing the JobDescriptions.
(Overwrites VishnuViewModelBaseReloadTaskTreeExecute(Object))
Protected MethodSearchSibling Searches for a node in a tree branch for a given index hierarchy in the "indices" stack.
Public MethodSetChildOrientation Sets the alignment of the child nodes.
Public MethodShowInfosExecute Brings any existing Vishnu information (messages and logs) to the foreground.
(Overwrites VishnuViewModelBaseShowInfosExecute(Object))
Public MethodShowLogExecute Opens the log file in the standard editor asynchronously via ShowLogTaskTree.
(Overwrites VishnuViewModelBaseShowLogExecute(Object))
Public MethodShowLogTaskTree Opens the log file in the standard editor.
Public MethodShowSettingsExecute Outputs the Vishnu parameters in the NotePad editor.
(Overwrites VishnuViewModelBaseShowSettingsExecute(Object))
Public MethodShowSettingsTaskTree Outputs the Vishnu parameters in the NotePad editor.
Public MethodShowVishnuHelpExecute Displays the Vishnu online help.
(Inherited from VishnuViewModelBase)
Public MethodShowVishnuHelpTask Displays the Vishnu online help.
(Inherited from VishnuViewModelBase)
Protected MethodsubLastNotNullLogicalChanged Is triggered if a LastNotNullLogical has changed anywhere in this subtree.
Protected MethodsubLogicalChanged Is triggered if a logical has changed somewhere in this subtree.
Protected MethodsubNodeProgressChanged Is triggered if a processing progress has changed somewhere in this subtree.
Protected MethodsubNodeProgressFinished Is triggered when processing has been completed somewhere in this subtree.
Protected MethodSubNodeProgressStarted Is triggered if processing has been started anywhere in this subtree.
Protected MethodSubNodePropertiesChanged Is activated if other properties have changed for this node, which are to be passed on to the UI.
Protected MethodSubNodeWorkersStateChanged Is triggered if workers exist for this node and their status has changed.
Protected MethodsubPropertiesChanged Is activated if properties relevant to the display have changed in LogicalTaskTree.
Protected MethodsubStateChanged Is triggered if a NodeState has changed somewhere in this subtree. Changes depending on the "LogicalState", "State" and "Trigger" node properties the display of the processing status of the node.
Public MethodswitchTaskTreeViewExecute Request to change the tree alignment (Yin_Yang/F4).
(Inherited from VishnuViewModelBase)
Public MethodToString Overridden ToString() method.
(Overwrites ObjectToString)
Protected MethodTransferShadowTreeProperties Transfers properties from a secured branch to an active branch.
Protected MethodTransferSiblingProperties Transfers certain properties in the VisualTree from sibling to node.
Protected Methodtraverse Recursive auxiliary routine for the public routine 'Traverse'.
Public MethodTraverse(FuncInt32, IExpandableNode, Object, Object) Goes recursively through the tree and calls the action for each node.
Public MethodTraverse(FuncInt32, IExpandableNode, Object, Object, Object) Goes recursively through the tree and calls the action for each node.
Public MethodUserControlContentRendered Is called up by DynamicUserControlBase when the UserControl has been fully rendered.
(Inherited from VishnuViewModelBase)
Protected MethodVerifyCalledOnUIThread Checks whether a call is made from the correct thread (dispatcher).
(Inherited from ObservableObject)
Back to the top
Events
 NameDescription of the
Public EventPropertyChanged The PropertyChanged event for the UI.
(Inherited from ObservableObject)
Back to the top
Fields
 NameDescription of the
Protected Field_myLogicalNode The assigned node from the LogicalTaskTree.
Public FieldColumnNumber Returns or sets the column number of the associated control in a square matrix. This value is moved to the GridColumn property at a suitable time, to inform the WPF GUI.
(Inherited from VishnuViewModelBase)
Protected FieldDispatcher The dispatcher of the UI.
(Inherited from ObservableObject)
Public FieldRowNumber Returns or sets the line number of the associated control in a square matrix. This value is moved to the GridRow property at a suitable time, to inform the WPF GUI.
(Inherited from VishnuViewModelBase)
Back to the top
Remarks
File: LogicalNodeViewModel.cs Author: Erik Nagel 05.01.2013 Erik Nagel: created
See also