C# Class MyNodes.Nodes.NodesEngine

ファイルを表示 Open project: derwish-pro/MyNodes.NET Class Usage Examples

Public Properties

Property Type Description
MAIN_PANEL_ID string
SHOW_ACTIVITY_INTERVAL int
dataDb INodesDataRepository
linksLock Object
nodesEngine NodesEngine
nodesLock Object

Public Methods

Method Description
AddLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input, bool writeInDb = true ) : MyNodes.Nodes.Link
AddLink ( string outputId, string inputId, bool writeInDb = true ) : MyNodes.Nodes.Link
AddLinks ( List links ) : int
AddNode ( MyNodes.Nodes.Node node, bool writeInDb = true ) : bool
AddNodes ( List nodes ) : int
CloneNode ( string id ) : void
GenerateNewIds ( List &nodesList, List &linksList ) : void
GenerateNewIds ( MyNodes.Nodes.Node node ) : void
GetInput ( string id ) : MyNodes.Nodes.Input
GetInputOwner ( MyNodes.Nodes.Input input ) : MyNodes.Nodes.Node
GetInputOwner ( string inputId ) : MyNodes.Nodes.Node
GetLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input ) : MyNodes.Nodes.Link
GetLinkForInput ( MyNodes.Nodes.Input input ) : MyNodes.Nodes.Link
GetLinks ( ) : List
GetLinksForNode ( MyNodes.Nodes.Node node ) : List
GetLinksForOutput ( MyNodes.Nodes.Output output ) : List
GetLinksForPanel ( string panelId, bool includeSubPanels ) : List
GetNode ( string id ) : MyNodes.Nodes.Node
GetNodes ( ) : List
GetNodesForPanel ( string panelId, bool includeSubPanels ) : List
GetNodesFromRepository ( ) : void
GetOutput ( string id ) : MyNodes.Nodes.Output
GetOutputOwner ( MyNodes.Nodes.Output output ) : MyNodes.Nodes.Node
GetOutputOwner ( string outputId ) : MyNodes.Nodes.Node
GetPanelNode ( string panelId ) : MyNodes.Nodes.PanelNode
GetPanelNodes ( ) : List
GetUpdateInterval ( ) : double
IsStarted ( ) : bool
LogEngineError ( string message ) : void
LogEngineInfo ( string message ) : void
LogNodesError ( string message ) : void
LogNodesInfo ( string message ) : void
NodesEngine ( INodesRepository nodesDb = null, INodesDataRepository dataDb = null ) : System
OnInputChange ( MyNodes.Nodes.Input input ) : void
OnOutputChange ( MyNodes.Nodes.Output output ) : void
RemoveAllNodesAndLinks ( ) : void
RemoveLink ( MyNodes.Nodes.Link link, bool writeInDb ) : void
RemoveLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input, bool writeInDb ) : void
RemoveLinks ( List links, bool writeInDb ) : void
RemoveNode ( MyNodes.Nodes.Node node ) : void
SetUpdateInterval ( double ms ) : void
ShowNodeActivity ( MyNodes.Nodes.Node node ) : void
Start ( ) : void
Stop ( ) : void
UpdateInput ( string inputId, string value, string name = null ) : void
UpdateNodeInDb ( MyNodes.Nodes.Node node ) : void
UpdateNodeInEditor ( MyNodes.Nodes.Node node ) : void
UpdateNodeOnDashboard ( MyNodes.Nodes.Node node ) : void
UpdateOutput ( string outputId, string value, string name = null ) : void

Private Methods

Method Description
GetLinksFromRepository ( ) : void
UpdateNodesLoop ( ) : void
UpdateShowActivity ( object sender, System.Timers.ElapsedEventArgs e ) : void
UpdateStatesFromLinks ( ) : void

Method Details

AddLink() public method

public AddLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input, bool writeInDb = true ) : MyNodes.Nodes.Link
output MyNodes.Nodes.Output
input MyNodes.Nodes.Input
writeInDb bool
return MyNodes.Nodes.Link

AddLink() public method

public AddLink ( string outputId, string inputId, bool writeInDb = true ) : MyNodes.Nodes.Link
outputId string
inputId string
writeInDb bool
return MyNodes.Nodes.Link

AddLinks() public method

public AddLinks ( List links ) : int
links List
return int

AddNode() public method

public AddNode ( MyNodes.Nodes.Node node, bool writeInDb = true ) : bool
node MyNodes.Nodes.Node
writeInDb bool
return bool

AddNodes() public method

public AddNodes ( List nodes ) : int
nodes List
return int

CloneNode() public method

public CloneNode ( string id ) : void
id string
return void

GenerateNewIds() public method

public GenerateNewIds ( List &nodesList, List &linksList ) : void
nodesList List
linksList List
return void

GenerateNewIds() public method

public GenerateNewIds ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

GetInput() public method

public GetInput ( string id ) : MyNodes.Nodes.Input
id string
return MyNodes.Nodes.Input

GetInputOwner() public method

public GetInputOwner ( MyNodes.Nodes.Input input ) : MyNodes.Nodes.Node
input MyNodes.Nodes.Input
return MyNodes.Nodes.Node

GetInputOwner() public method

public GetInputOwner ( string inputId ) : MyNodes.Nodes.Node
inputId string
return MyNodes.Nodes.Node

GetLink() public method

public GetLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input ) : MyNodes.Nodes.Link
output MyNodes.Nodes.Output
input MyNodes.Nodes.Input
return MyNodes.Nodes.Link

GetLinkForInput() public method

public GetLinkForInput ( MyNodes.Nodes.Input input ) : MyNodes.Nodes.Link
input MyNodes.Nodes.Input
return MyNodes.Nodes.Link

GetLinks() public method

public GetLinks ( ) : List
return List

GetLinksForNode() public method

public GetLinksForNode ( MyNodes.Nodes.Node node ) : List
node MyNodes.Nodes.Node
return List

GetLinksForOutput() public method

public GetLinksForOutput ( MyNodes.Nodes.Output output ) : List
output MyNodes.Nodes.Output
return List

GetLinksForPanel() public method

public GetLinksForPanel ( string panelId, bool includeSubPanels ) : List
panelId string
includeSubPanels bool
return List

GetNode() public method

public GetNode ( string id ) : MyNodes.Nodes.Node
id string
return MyNodes.Nodes.Node

GetNodes() public method

public GetNodes ( ) : List
return List

GetNodesForPanel() public method

public GetNodesForPanel ( string panelId, bool includeSubPanels ) : List
panelId string
includeSubPanels bool
return List

GetNodesFromRepository() public method

public GetNodesFromRepository ( ) : void
return void

GetOutput() public method

public GetOutput ( string id ) : MyNodes.Nodes.Output
id string
return MyNodes.Nodes.Output

GetOutputOwner() public method

public GetOutputOwner ( MyNodes.Nodes.Output output ) : MyNodes.Nodes.Node
output MyNodes.Nodes.Output
return MyNodes.Nodes.Node

GetOutputOwner() public method

public GetOutputOwner ( string outputId ) : MyNodes.Nodes.Node
outputId string
return MyNodes.Nodes.Node

GetPanelNode() public method

public GetPanelNode ( string panelId ) : MyNodes.Nodes.PanelNode
panelId string
return MyNodes.Nodes.PanelNode

GetPanelNodes() public method

public GetPanelNodes ( ) : List
return List

GetUpdateInterval() public method

public GetUpdateInterval ( ) : double
return double

IsStarted() public method

public IsStarted ( ) : bool
return bool

LogEngineError() public method

public LogEngineError ( string message ) : void
message string
return void

LogEngineInfo() public method

public LogEngineInfo ( string message ) : void
message string
return void

LogNodesError() public method

public LogNodesError ( string message ) : void
message string
return void

LogNodesInfo() public method

public LogNodesInfo ( string message ) : void
message string
return void

NodesEngine() public method

public NodesEngine ( INodesRepository nodesDb = null, INodesDataRepository dataDb = null ) : System
nodesDb INodesRepository
dataDb INodesDataRepository
return System

OnInputChange() public method

public OnInputChange ( MyNodes.Nodes.Input input ) : void
input MyNodes.Nodes.Input
return void

OnOutputChange() public method

public OnOutputChange ( MyNodes.Nodes.Output output ) : void
output MyNodes.Nodes.Output
return void

RemoveAllNodesAndLinks() public method

public RemoveAllNodesAndLinks ( ) : void
return void

RemoveLink() public method

public RemoveLink ( MyNodes.Nodes.Link link, bool writeInDb ) : void
link MyNodes.Nodes.Link
writeInDb bool
return void

RemoveLink() public method

public RemoveLink ( MyNodes.Nodes.Output output, MyNodes.Nodes.Input input, bool writeInDb ) : void
output MyNodes.Nodes.Output
input MyNodes.Nodes.Input
writeInDb bool
return void

RemoveLinks() public method

public RemoveLinks ( List links, bool writeInDb ) : void
links List
writeInDb bool
return void

RemoveNode() public method

public RemoveNode ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

SetUpdateInterval() public method

public SetUpdateInterval ( double ms ) : void
ms double
return void

ShowNodeActivity() public method

public ShowNodeActivity ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UpdateInput() public method

public UpdateInput ( string inputId, string value, string name = null ) : void
inputId string
value string
name string
return void

UpdateNodeInDb() public method

public UpdateNodeInDb ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

UpdateNodeInEditor() public method

public UpdateNodeInEditor ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

UpdateNodeOnDashboard() public method

public UpdateNodeOnDashboard ( MyNodes.Nodes.Node node ) : void
node MyNodes.Nodes.Node
return void

UpdateOutput() public method

public UpdateOutput ( string outputId, string value, string name = null ) : void
outputId string
value string
name string
return void

Property Details

MAIN_PANEL_ID public_oe property

public string MAIN_PANEL_ID
return string

SHOW_ACTIVITY_INTERVAL public_oe property

public int SHOW_ACTIVITY_INTERVAL
return int

dataDb public_oe property

public INodesDataRepository dataDb
return INodesDataRepository

linksLock public_oe property

public Object linksLock
return Object

nodesEngine public_oe static_oe property

public static NodesEngine,MyNodes.Nodes nodesEngine
return NodesEngine

nodesLock public_oe property

public Object nodesLock
return Object