void SeriesA1() { var a = Unit2In1Out.CreateStub(); var b = Unit1In2Out.CreateStub(); Unit.UnitBase.Connect(b, 1, a, 1); UnitBase.ReplaceInput(Target, 1, b, 0, b, 0); UnitBase.ReplaceOutput(Target, 0, a, 0, a, 0); Children[1].Target = a; Children[2].Target = b; }
void LoopW() { var a = Unit2In1Out.CreateStub(); var b = Unit1In2Out.CreateStub(); var w = Unit1In1Out.CreateStub(); var delay = new StepDelay(); UnitBase.ReplaceOutput(Target, 0, b, 0, b, 0); UnitBase.ReplaceInput(Target, 0, a, 0, a, 0); UnitBase.Connect(b, 1, delay, 0); UnitBase.Connect(delay, 0, w, 0); UnitBase.Connect(w, 0, a, 1); Children[1].Target = a; Children[2].Target = b; Children[3].Target = w; }
void ParallelA1() { var a1 = Unit2In1Out.CreateStub(); var a2 = Unit2In1Out.CreateStub(); var b1 = Unit1In2Out.CreateStub(); var b2 = Unit1In2Out.CreateStub(); UnitBase.ReplaceInput(Target, 0, b1, 0, a1, 0); UnitBase.ReplaceInput(Target, 1, b2, 0, a2, 0); UnitBase.Connect(b1, 0, a1, 0); UnitBase.Connect(b1, 1, a2, 0); UnitBase.Connect(b2, 0, a1, 1); UnitBase.Connect(b2, 1, a2, 1); Children[1].Target = a1; Children[2].Target = a2; Children[3].Target = b1; Children[4].Target = b2; }
void ParallelB1() { var a0 = Unit2In1Out.CreateStub(); var a1 = Unit2In1Out.CreateStub(); var b0 = Unit1In2Out.CreateStub(); var b1 = Unit1In2Out.CreateStub(); UnitBase.ReplaceOutput(Target, 0, a0, 0, b0, 0); UnitBase.ReplaceOutput(Target, 1, a1, 0, b1, 0); UnitBase.Connect(b0, 0, a0, 0); UnitBase.Connect(b1, 1, a1, 1); UnitBase.Connect(b0, 1, a1, 0); UnitBase.Connect(b1, 0, a0, 1); Children[1].Target = b0; Children[2].Target = b1; Children[3].Target = a0; Children[4].Target = a1; }