Ejemplo n.º 1
0
 public StateBuilder(string inputFilename)
 {
     InputFileName        = inputFilename;
     OutputDirectory      = Path.GetDirectoryName(inputFilename);
     Options              = new StateBuilderOptions();
     this.codeDomProvider = CreateDomProvider();
 }
Ejemplo n.º 2
0
 protected CoderBase(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
 {
     Model         = model;
     Options       = options;
     CodeNamespace = codeNamespace;
     OnCoderBaseCreated(model, options, codeNamespace);
 }
 public CoderStateMachine(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
     : base(model, options, codeNamespace)
 {
     this.coderFeeder   = new CoderFeeder(model, options, codeNamespace);
     this.coderContext  = new CoderContext(model, options, codeNamespace);
     this.coderParallel = new CoderParallel(model, options, codeNamespace);
     this.coderState    = new CoderState(model, options, codeNamespace);
 }
Ejemplo n.º 4
0
        static CoderBase()
        {
            if (OptionsStatic == null)
            {
                OptionsStatic = new StateBuilderOptions( );
            }

            //   OptionsStatic .EventMessageSuffix = "EventArgs";
        }
        //private CoderEventsArgs coderEventsArgs;

        public CoderStateMachine(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
            : base(model, options, codeNamespace)
        {
            this.coderFeeder = new CoderFeeder(model, options, codeNamespace);
            OnCoderFeederCreated(coderFeeder, model, options, codeNamespace);

            this.coderContext = new CoderContext(model, options, codeNamespace);
            OnCoderContextCreated(coderContext, model, options, codeNamespace);

            this.coderParallel = new CoderParallel(model, options, codeNamespace);
            OnCoderParallelCreated(coderParallel, model, options, codeNamespace);

            this.coderState = new CoderState(model, options, codeNamespace);
            OnCoderStateCreated(coderState, model, options, codeNamespace);

            //this.coderEventsArgs = new CoderEventsArgs(model, options, codeNamespace);

            OnCoderStateMachineCreated(coderFeeder, coderContext, coderParallel, coderState, model, options, codeNamespace);
        }
 public CoderState(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
     : base(model, options, codeNamespace)
 {
 }
Ejemplo n.º 7
0
 partial void OnCoderBaseCreated(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
 ;
Ejemplo n.º 8
0
 partial void OnCreated(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
 {
     coderEventArgs = new CoderEventsArgs(model, options, codeNamespace);
 }
 partial void OnCoderFeederCreated(CoderFeeder coderFeeder, StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace);
 partial void OnCoderContextCreated(CoderContext coderContext, StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace);
 partial void OnCoderParallelCreated(CoderParallel coderParallel, StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace);
 partial void OnCoderStateMachineCreated(CoderFeeder coderFeeder, CoderContext coderContext, CoderParallel coderParallel, CoderState coderState, StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace);
 public CoderFeeder(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
     : base(model, options, codeNamespace)
 {
     //ext
     OnCreated(model, options, codeNamespace);
 }
Ejemplo n.º 14
0
 partial void OnCoderBaseCreated(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
 {
     OptionsStatic = Options; //access option statically
 }
Ejemplo n.º 15
0
 public CoderEventsArgs(StateMachineType model, StateBuilderOptions options, CodeNamespace codeNamespace)
     : base(model, options, codeNamespace)
 {
     _model = model;
 }