1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 // Author : Jean Rahuel
26 /*! \file SUPERV.idl This file contains a set of interfaces of the %SUPERVISION module
29 #ifndef __SUPERV_IDL__
30 #define __SUPERV_IDL__
32 #include "SALOME_ModuleCatalog.idl"
33 #include "SALOME_Component.idl"
34 #include "SALOMEDS.idl"
36 The main package of interfaces of %SUPERVISION module
41 This enumeration contains a set of elements defining the type of the port.
42 \note <BR>In general, ports represent <STRONG>input or output parameters</STRONG> of the functions,
43 implemented in different kinds of nodes of the graph.
45 enum KindOfPort { UndefinedParameter , ServiceParameter , GateParameter ,
46 InLineParameter , LoopParameter , SwitchParameter ,
47 EndSwitchParameter , GOTOParameter } ;
50 This enumeration contains a set of elements defining the type of the node.
52 enum KindOfNode { FactoryNode , DataFlowNode , ComputingNode ,
53 InLineNode , LoopNode , EndLoopNode ,
54 SwitchNode , EndSwitchNode , GOTONode , UnknownNode };
57 This struct contains fields defining the date.
68 This enumeration contains a set of elements defining the type of operation, which has been performed
72 enum GraphEvent { UndefinedEvent , NoEvent , NewThreadEvent ,
73 WaitingEvent , ReadyEvent ,
74 RunningEvent , DoneEvent , ErroredEvent ,
75 SuspendEvent , ResumeEvent ,
76 KillEvent , StopEvent ,
77 ReRunEvent , ReStartEvent } ;
79 // UndefinedState : Non existing Node, Port etc...
81 This enumeration contains a set of elements defining the current state of the node(graph).
84 enum GraphState { UndefinedState , NoState , EditingState , SuspendState ,
85 WaitingState , ReadyState , SuspendReadyState ,
87 DoneState , ErrorState ,
88 SuspendDoneState , SuspendErroredState ,
89 KillState , StopState ,
90 ReRunState , ReStartState ,
91 NumberOfGraphStates } ;
93 /*! A sequence of string values.
95 typedef sequence<string> ListOfStrings ;
101 typedef sequence<Link> ListOfLinks ;
105 typedef sequence<Port> ListOfPorts ;
115 typedef sequence<CNode> ListOfCNodes ;
116 typedef sequence<FNode> ListOfFNodes ;
117 typedef sequence<INode> ListOfINodes ;
118 typedef sequence<GNode> ListOfGNodes ;
119 typedef sequence<LNode> ListOfLNodes ;
120 typedef sequence<ELNode> ListOfELNodes ;
121 typedef sequence<SNode> ListOfSNodes ;
122 typedef sequence<ESNode> ListOfESNodes ;
124 This struct contains fields defining different types of nodes.
128 ListOfCNodes CNodes ;
129 ListOfFNodes FNodes ;
130 ListOfINodes INodes ;
131 ListOfGNodes GNodes ;
132 ListOfLNodes LNodes ;
133 ListOfELNodes ELNodes ;
134 ListOfSNodes SNodes ;
135 ListOfESNodes ESNodes ;
140 typedef sequence<Graph> ListOfGraphs ;
142 // ToSuspendState : will be Suspended before running if waiting or
143 // will be Suspended while running or
144 // will be Suspended after run
145 // ToSuspendStartState : will be Suspended at the beginning of execution
146 // ToSuspendDoneState : will be Suspended after run
148 This enumeration contains a set of elements defining the %ControlState of the node.
149 The %ControlState gives a possibility to determine the "control actions" which have been done by
150 the user (Suspend, SuspendDone, Kill, etc...).
152 enum ControlState { VoidState , ToSuspendStartState ,
153 ToSuspendState , ToSuspendDoneState ,
154 ToKillState , ToKillDoneState , ToStopState ,
155 NumberOfControlStates } ;
157 The AutomatonState is an internal state of the automaton of the Executor
158 of the %Supervision %Engine. It is used for inner debugging purposes only.
161 enum AutomatonState { UnKnownState ,
166 SuspendedReadyToResumeState ,
171 SuspendedExecutingState ,
172 ResumedExecutingState ,
173 KilledExecutingState ,
174 StoppedExecutingState ,
175 SuccessedExecutingState ,
176 ErroredExecutingState ,
177 SuspendedSuccessedState ,
178 SuspendedErroredState,
179 ResumedSuccessedState ,
180 ResumedErroredState ,
181 KilledSuccessedState ,
183 StoppedSuccessedState ,
184 StoppedErroredState ,
190 SuspendedSuccessedToReStartState ,
191 SuspendedErroredToReStartState ,
194 NumberOfAutomatonStates
205 /*! \brief interface %SuperG
207 This interface contains a set of methods necessary for management of a %graph.
209 interface SuperG : Engines::Component, SALOMEDS::Driver {
212 Constructs a graph with possibility to read/edit it
213 \param aGraph %aGraphName or %aGraphXmlFile
215 SUPERV::Graph Graph(in string aGraph ) ; // aGraphName or aGraphXmlFile
218 Constructs a read Only graph ( for execution ).
219 \note <BR>In this graph there is also a possibility to update nodes, coordinates of the links,
220 of container names and input data.
221 \param aGraph %aGraphName or %aGraphXmlFile
223 SUPERV::Graph GraphE(in string aGraph ) ; // aGraphName or aGraphXmlFile
226 Creates a value of <b>string</b> type which will be used for <VAR>Input</VAR> method in the interface %Node.
227 \param aString Input value of string type.
229 SUPERV::Value StringValue( in string aString ) ;
231 Creates a value of <b>any</b> type which will be used for <VAR>Input</VAR> method in the interface %Node.
232 \param anAny Input value of any type.
234 SUPERV::Value AnyValue( in any anAny ) ;
236 Gets a graph with a definite %IOR
237 \param ior String parameter defining %IOR of the graph.
239 SUPERV::Graph getGraph(in string ior); // get Graph from is IOR
243 /*! \brief %CNode interface
245 This is a base class of the SUPERVISION module. It contains a set of methods allowing:
247 <li>creating a <b>Computation</b> node and setting its parameters (Name, Author, Comments etc.)
248 <li>checking the current state of the node in the data flow
249 <li>node execution follow-up
250 <li>management of the components, which can be initialized for execution of calculations in the data flow. (For that purpose %CNode class inherits the methods of the %Engines:Component class)
255 interface CNode : Engines::Component {
260 Returns the name of the node(graph).
264 Returns the service of this node .
266 SALOME_ModuleCatalog::Service Service() ;
268 Returns the type of the node.
270 SUPERV::KindOfNode Kind() ;
272 Returns the date of creation of the node(graph).
274 SUPERV::SDate CreationDate() ;
276 Returns the date of last update of the node(graph).
278 SUPERV::SDate LastUpdateDate() ;
280 Returns the name of the version of the node(graph).
284 Returns the name of the author of the node(graph).
288 Returns the string containing comments about this node(graph).
294 Sets the name of the node(graph).
295 \param aNewName String value defining the name of the node(graph).
296 \return True if the name has been updated.
298 boolean SetName(in string aNewName ) ;
300 Sets the name of the author. Returns True if it is updated.
301 \param anAuthor String value defining the name of the author.
302 \return True if the name has been updated.
304 boolean SetAuthor(in string anAuthor ) ;
306 Allows to update the comments about this node(graph).
307 \param aComment String value containing a comment to this node(graph).
308 \return True if the old comment has been updated.
310 boolean SetComment(in string aComment ) ;
313 Gets a port of the node.
315 SUPERV::Port Port( in string aParameterName ) ;
318 Enters a value into an Input %Port
320 SUPERV::Port Input( in string InputParameterName ,
324 // Create an Input %Port and an Output Port in LabelNode or ControlNode
325 // boolean BusPort( in string InOutParameterName ,
326 // in string InOutParameterType ,
327 // out SUPERV::Port InputPort ,
328 // out SUPERV::Port OutputPort ) ;
329 // boolean BusPorts( in string InputParameterName ,
330 // in string InputParameterType ,
331 // in string OutputParameterName ,
332 // in string OutputParameterType ,
333 // out SUPERV::Port InputPort ,
334 // out SUPERV::Port OutputPort ) ;
337 Gets a list of ports of the node(graph)
339 SUPERV::ListOfPorts Ports() ;
341 /*! Gets a list of links of a port
343 SUPERV::ListOfLinks Links() ;
346 Returns True if this node is a graph.
347 \note <BR>A node of the graph can also represent in its turn another graph.
351 Returns True if the node appears to be a %computing node.
353 boolean IsComputing() ;
355 Returns True if the node appears to be a %factory node.
357 boolean IsFactory() ;
359 Returns True if the node appears to be an %inline node.
363 Returns True if the node appears to be a %GOTO node.
367 Returns True if the node appears to be a %loop node.
371 Returns True if the node appears to be an %endloop node.
373 boolean IsEndLoop() ;
375 Returns True if the node appears to be a %switch node.
379 Returns True if the node appears to be a %endswitch node.
381 boolean IsEndSwitch() ;
384 Returns the number of subgraphs.
389 Returns the number of threads of the graph.
394 Returns True if the node(graph) is waiting for Data input
396 boolean IsWaiting() ;
399 Returns True if the node(graph) is ready for execution
404 Returns True if the node(graph) is currently running
406 boolean IsRunning() ;
409 Returns True if execution is finished
414 Returns True if execution is suspended
417 boolean IsSuspended() ;
419 Returns the current state of the graph.
421 SUPERV::GraphState State() ;
424 Waits for ready_to_run state, Suspend and return.
428 /*! Waits for running state, Suspend and return.
432 /*! Waits for done state, Suspend and return.
436 /*! Waits for Suspend state and return.
438 boolean SuspendedW() ;
444 If not running : will be killed when ready to run.
445 If running : kills immediatly.
451 Execution will be killed only just after running (only for nodes).
457 If not running : will be stopped when ready to run.
458 If running : stops immediatly
461 /*! Suspends execution.
463 If not running : will be Suspended when ready to run. It is used in step-by-step execution.
464 If running : suspends immediatly
467 /*! Suspends execution only just after running.
469 boolean SuspendDone();
471 /*! Resumes execution.
473 If Suspended : running will be continued.
474 If not Suspended : cancels the current ControlState ( Suspend, Kill, ...)
479 Restarts execution of the node.
483 Restarts execution of the graph beginning from a definite node.
485 boolean ReRunAt( in string aNodeName );
488 Restarts and suspends execution of the node(graph).
492 Restarts and suspends execution of the graph beginning from a definite node.
493 \param aNodeName String parameter defining the name of the node.
495 boolean ReStartAt( in string aNodeName );
498 Returns automaton execution state of the node(graph).
500 SUPERV::AutomatonState AutoState() ;
502 // Control state required : Kill, Suspend, Stop
504 Returns control state of the node(graph).
506 SUPERV::ControlState Control() ;
508 Clears the control state of the node(graph).
510 void ControlClear() ;
512 boolean ContainerKill();
514 Sets the position of the node in the window.
516 void Coords( in long X , in long Y ) ;
518 Returns the position of the node along X-axis.
522 Returns the position of the node along Y-axis.
526 Returns the Cpu used by a node for execution of calculations in seconds.
531 /*! \brief %FNode class
533 This class is necessary for management of factory nodes in a data flow. Besides the inherited methods it contains some methods allowing to define
534 the component from the container, which will be called for execution of the calculation.
537 interface FNode : CNode {
539 /*! Gets the name of the component, which will be called for execution of the calculation.
541 string GetComponentName() ;
542 /*! Gets the name of the interface of the component.
544 string GetInterfaceName() ;
545 /*! Gets the container containing the component, which will be called for execution of the calculation.
547 string GetContainer() ;
548 /*! Sets the name of the component, which will be called for execution of the calculation.
549 \param aComponentName Name of the component.
551 boolean SetComponentName(in string aComponentName ) ;
552 /*! Sets the name of the interface of the component.
553 \param anInterfaceName Name of the interface.
555 boolean SetInterfaceName(in string anInterfaceName ) ;
556 /*! Gets the container containing the component, which will be called for execution of the calculation.
557 \param aContainer Container containing the component.
559 boolean SetContainer(in string aContainer ) ;
561 /*! \brief %INode class
563 This class is necessary for management of inline nodes in a data flow. Besides the inherited methods it contains some methods allowing to set a Python function, which will be
564 executed for performing calculations, as well as input and output parameters for the node.
568 interface INode : CNode {
571 /*! Sets Python function for the InLine Node.
572 \param FuncName Name of the function
573 \param aPyInitFunction Python initialization function of the InLine Node
575 void SetPyFunction( in string FuncName ,
576 in SUPERV::ListOfStrings aPyInitFunction ) ;
577 /*! Returns Python function of the InLine Node.
579 SUPERV::ListOfStrings PyFunction() ;
580 /*! Returns the name of the Python function of the InLine Node.
582 string PyFuncName() ;
584 /*! Creates an Input port in an Inline node.
586 \param aParameterName This value sets the name of the parameter which will be defined in this port.
587 \param aParameterType This value sets the type of the parameter which will be defined in this port.
590 SUPERV::Port InPort( in string aParameterName , in string aParameterType ) ;
591 /*! Creates an Output port in an Inline node.
593 \param aParameterName This value sets the name of the parameter which will be defined in this port.
594 \param aParameterType This value sets the type of the parameter which will be defined in this port.
597 SUPERV::Port OutPort( in string aParameterName , in string aParameterType ) ;
599 /*! \brief %GNode class
601 This class is necessary for management of GOTO/EndLoop/EndSwitch nodes in the dataflow.
602 Besides the inherited methods it contains some methods allowing to define the couple node, which will be linked to this one.
604 // GOTO/EndLoop/EndSwitch Nodes
606 interface GNode : INode {
608 /*! Sets the coupled InLine Node to this GOTO/EndLoop/EndSwitch Node.
610 boolean SetCoupled( in string anInLineNode ) ;
611 /*! Returns the coupled InLine Node to this GOTO/EndLoop/EndSwitch Node.
613 SUPERV::INode Coupled() ;
615 /*! %Loop Nodes class
619 interface LNode : GNode {
621 /*! Sets Python Init function of the Loop Node.
622 \param InitName Name of the Init function
623 \param aPyInitFunction Python Init function
625 void SetPyInit( in string InitName ,
626 in SUPERV::ListOfStrings aPyInitFunction ) ;
627 /*! Returns Python Init function of the Loop Node.
629 SUPERV::ListOfStrings PyInit() ;
630 /*! Returns the name of the Python Init function of the Loop Node.
632 string PyInitName() ;
634 /*! Sets Python More function of the Loop Node.
635 \param MoreName Name of the More function
636 \param aPyMoreFunction Python More function
638 void SetPyMore( in string MoreName ,
639 in SUPERV::ListOfStrings aPyMoreFunction ) ;
640 /*! Returns Python More function of the Loop Node.
642 SUPERV::ListOfStrings PyMore() ;
643 /*! Returns the name of the Python More function of the Loop Node.
645 string PyMoreName() ;
647 /*! Sets Python Next function of the Loop Node.
648 \param NextName Name of the Next function
649 \param aPy NextFunction Python Next function
651 void SetPyNext( in string NextName ,
652 in SUPERV::ListOfStrings aPyNextFunction ) ;
654 /*! Returns Python Next function of the Loop Node.
656 SUPERV::ListOfStrings PyNext() ;
657 /*! Returns the name of the Python Next function of the Loop Node.
659 string PyNextName() ;
665 interface ELNode : GNode {
671 interface SNode : GNode {
677 interface ESNode : GNode {
681 /*! \brief Interface of a graph
683 This interface includes a set of methods used for management of the graphs in %SUPERVISION module.
687 interface Graph : INode {
690 /*! Creates a Computing Node in a Graph.
692 SUPERV::CNode CNode( in SALOME_ModuleCatalog::Service aService ) ;
694 /*! Creates a Factory Node in a Graph.
696 SUPERV::FNode FNode( in string aComponentName ,
697 in string anInterfaceName ,
698 in SALOME_ModuleCatalog::Service aService ) ;
700 /*! Creates an InLine Node in a Graph.
702 SUPERV::INode INode( in string FuncName , in ListOfStrings aPythonFunction ) ;
704 /*! Creates a GOTO Node and links it to the corresponding InLine node.
706 SUPERV::GNode GNode( in string FuncName , in ListOfStrings aPythonFunction ,
707 in string anINode ) ;
709 /*! Creates a Loop Node ("for" or "while" loop) and links it to the corresponding end of loop node.
711 SUPERV::LNode LNode( in string InitName , in ListOfStrings InitFunction ,
712 in string MoreName , in ListOfStrings MoreFunction ,
713 in string NextName , in ListOfStrings NextFunction ,
714 out SUPERV::INode anEndOfLoop ) ;
716 /*! Creates a conditional "if/elseif/else" or "switch" node and the corresponding end node
718 SUPERV::SNode SNode( in string FuncName , in ListOfStrings aPythonFunction ,
719 out SUPERV::INode anEndOfSwitch ) ;
721 /*! Returns an existing node with a definite name.
722 \param aNodeName Name of the Node.
724 SUPERV::CNode Node( in string aNodeName ) ;
726 /*! Creates a CORBA Component Object Reference
728 Engines::Component ComponentRef( in string aComputerContainer ,
729 in string aComponentName ) ;
732 Creates a link connecting two ports (%Output %Port and %Input %Port) of the nodes in a Graph
734 SUPERV::Link Link( in SUPERV::Port OutputPort ,
735 in SUPERV::Port InputPort ) ;
738 Imports a graph into a file with XML format
739 \param anXmlFile String parameter defining the name of the XML file.
740 \return True, if the graph has been successfully imported.
742 boolean Import( in string anXmlFile ) ;
744 Exports a graph from a file with XML format
745 \param anXmlFile String parameter defining the name of the XML file.
746 \return True, if the graph has been successfully imported.
748 boolean Export( in string anXmlFile ) ;
750 Returns True if the graph is read Only.
752 boolean IsReadOnly() ;
755 Starts asynchronous execution of the graph.
760 Assigns to the %Node an %Event and a %State of the %Node, if the Event is
761 available. And returns immediately Nil, NoEvent and NoState if not.
762 Returns false if the graph is finished, suspended, killed or stopped.
763 \param aNode %Node for which this method is called
764 \param anEvent An operation, which has been performed on this node(graph).
765 \param aState Current state of the graph
767 boolean EventNoW( out SUPERV::CNode aNode , out SUPERV::GraphEvent anEvent ,
768 out SUPERV::GraphState aState ) ;
771 Assigns to the %Node an %Event and a %State of the %Node, if the Event is
772 available. Waits if it is not available at the current moment.
773 Returns false if the graph is finished, suspended, killed or stopped.
774 \param aNode %Node for which this method is called
775 \param anEvent An operation, which has been performed on this node(graph).
776 \param aState Current state of the graph
778 boolean Event( out SUPERV::CNode aNode , out SUPERV::GraphEvent anEvent ,
779 out SUPERV::GraphState aState ) ;
781 // Same as Event but execution of the thread is suspended between the
782 // return of EventW and the next call to EventW
784 Assigns to the %Node an %Event and a %State of the %Node, if the Event is
785 available. And returns immediately Nil, NoEvent and NoState if not.
786 Returns false if the graph is finished, suspended, killed or stopped.
787 \note <BR>Execution of the thread is suspended between the return of this
788 method and its next usage.
789 \param aNode %Node for which this method is called
790 \param anEvent An operation, which has been performed on this node(graph).
791 \param aState Current state of the graph
793 boolean EventW( out SUPERV::CNode aNode , out SUPERV::GraphEvent anEvent ,
794 out SUPERV::GraphState aState ) ;
795 /*! \name Methods used for inner debugging purposes of threads management :
801 SUPERV::ListOfNodes LevelNodes( in long aLevel ) ;
807 Returns the number of independent subgraphs
809 long GraphsNumber() ;
811 Returns the number of currently running threads.
815 Returns the number of suspended threads.
817 long SuspendedThreads();
819 Returns True if the graph is valid.
823 Returns True if the graph can be executed.
825 boolean IsExecutable() ;
827 Returns True if the graph represents a working algorithm.
829 boolean IsDataFlow() ;
832 Returns True if the graph is being currently edited.
834 boolean IsEditing() ;
836 Returns True if the graph is being currently executed.
838 boolean IsExecuting() ;
840 long LastLevelDone() ;
843 Launches step-by-step execution of the graph.
844 \note The execution is suspended immediatly after performance of operations of the first node and
845 user can specify the nodes, where execution will be again suspended after its resuming.
849 Allows to copy one graph into another.
851 SUPERV::Graph Copy() ;
855 boolean Merge( in Graph aGraph ) ;
857 Returns a list of nodes of the graph.
859 SUPERV::ListOfNodes Nodes() ;
861 Returns a list of links of the graph.
863 SUPERV::ListOfLinks GLinks() ;
865 Gets IOR of the garph.
870 Returns a list of graphs.
871 \note Not implemented
873 SUPERV::ListOfGraphs Graphs() ;
881 /*! \brief Interface of the %link
883 This interface contains a set of methods used for representation and management of the links
884 connecting nodes in a %graph.
888 interface Link : Engines::Component {
891 Associates an %Output %Port to the Link
893 SUPERV::Port OutPort() ;
896 Associates an %Input %Port to the Link
898 SUPERV::Port InPort() ;
901 /*! \name Methods used for representation of links in GUI of %SALOME application :
905 Returns the number of coordinate points which are included in the link.
906 \note <BR>Every link can contain a set of coordinate points which constitute it. These points have
907 index numbers (beginning from 1) and coordinates defining their position in the window. Indexing of
908 the points starts from input port to output port of the corresponding link.
912 Adds a coordinate point to the link.
913 \param index Index of the point.
914 \param X Coordinates of the point.
915 \param Y Coordinates of the point.
917 boolean AddCoord( in long index , in long X , in long Y ) ;
919 Changes the location of a definite coordinate point of the link.
920 \param index Index of the point.
921 \param X Coordinates of the point.
922 \param Y Coordinates of the point.
925 boolean ChangeCoord( in long index , in long X , in long Y ) ;
927 Removes a coordinate point of the link.
928 \param index Index of the point.
931 boolean RemoveCoord( in long index ) ;
934 Sets the location of a coordinate point of the link.
935 \param index Index of the point.
936 \param X Coordinates of the point.
937 \param Y Coordinates of the point.
940 boolean Coords( in long index , out long X , out long Y ) ;
947 /*! \brief %Value interface
949 This interface contains a set of methods used for setting initial parameters of the ports
953 interface Value : Engines::Component {
956 Converts the given value into a value of string type.
960 Converts the given value into a value of independant data type.
964 Returns True if the value represents an IOR.
968 Gets data type of the component.
970 string ComponentDataType() ;
975 /*! \brief %Port interface
977 This interface contains a set of methods used for management of the ports.
981 interface Port : Value {
985 Gives a value to an Input %Port
986 \param aValue This parameter defines the input value
988 boolean Input( in SUPERV::Value aValue ) ;
991 Returns the node of the port
993 SUPERV::CNode Node() ;
995 Sets the name of the port.
999 /* Gets the type of a port.
1000 \return A string defining the type of a port
1005 // Link of an Input Port
1007 Returns the link of an %Input %Port
1009 SUPERV::Link Link() ;
1012 Returns a list of links of an Input %Port of an EndSwitchNode
1014 SUPERV::ListOfLinks Links() ;
1017 Returns True if this port appears to be an %Input %Port of a Node
1022 Returns True if an %Input %Value exists for that %Input %Port (without link)
1024 boolean HasInput() ;
1027 Returns True if the %Port is linked (without value)
1029 // Port with link (without Value)
1030 boolean IsLinked() ;
1033 /*! Returns the type of this port.
1035 SUPERV::KindOfPort Kind() ;
1037 // Port from the service of the node
1039 Returns True if the %Port is a parameter of a service
1042 // Port is a Gate of the node
1044 Returns True if the %Port appears to be a Gate Port of the Node
1047 // Port is a parameter of an InLineNode
1049 Returns True if the %Port appears to be a parameter of an InLine Node.
1051 boolean IsInLine() ;
1053 // Port is a LoopParameter (InitLoop or DoLoop) of an LoopNode
1055 Returns True if the %Port appears to be a Loop Parameter (InitLoop or DoLoop) of a Loop Node
1058 // Port is an output parameter of a SwitchNode connected to an InGate
1060 Returns True if the %Port appears to be a parameter of a switch node
1062 // Port is a parameter of a switch node
1063 boolean IsSwitch() ;
1064 // Port is an Input parameter of a EndSwitchNode connected to several output ports
1066 Returns True if the %Port appears to be an EndSwitch Node connected to several output ports.
1068 boolean IsEndSwitch() ;
1070 /*! Returns the current state of the graph.
1072 SUPERV::GraphState State() ;
1073 /*! Returns True if calculation is finished.