예제 #1
0
        public StateGraph()
        {
            states      = new GraphElementCollection <IState>(this);
            transitions = new GraphConnectionCollection <IStateTransition, IState, IState>(this);
            groups      = new GraphElementCollection <GraphGroup>(this);

            elements.Include(states);
            elements.Include(transitions);
            elements.Include(groups);
        }
예제 #2
0
        public FlowGraph()
        {
            units = new GraphElementCollection <IUnit>(this);
            controlConnections = new GraphConnectionCollection <ControlConnection, ControlOutput, ControlInput>(this);
            valueConnections   = new GraphConnectionCollection <ValueConnection, ValueOutput, ValueInput>(this);
            invalidConnections = new GraphConnectionCollection <InvalidConnection, IUnitOutputPort, IUnitInputPort>(this);
            groups             = new GraphElementCollection <GraphGroup>(this);

            elements.Include(units);
            elements.Include(controlConnections);
            elements.Include(valueConnections);
            elements.Include(invalidConnections);
            elements.Include(groups);

            controlInputDefinitions  = new UnitPortDefinitionCollection <ControlInputDefinition>();
            controlOutputDefinitions = new UnitPortDefinitionCollection <ControlOutputDefinition>();
            valueInputDefinitions    = new UnitPortDefinitionCollection <ValueInputDefinition>();
            valueOutputDefinitions   = new UnitPortDefinitionCollection <ValueOutputDefinition>();

            variables = new VariableDeclarations();
        }