Пример #1
0
 /// <summary>
 /// Pegging's Pegger Model
 /// </summary>
 private Mozart.SeePlan.Pegging.IPeggerModel2 BuildPegging()
 {
     Mozart.SeePlan.Pegging.PeggerModelBuilder2     Pegging = new Mozart.SeePlan.Pegging.PeggerModelBuilder2("Pegging");
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area0   = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("Start", false);
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area1   = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("TEST", false);
     Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder node0   = new Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder("TestPre");
     System.Collections.Generic.List <string>       stgs0   = new System.Collections.Generic.List <string>();
     stgs0.Add("TestPreStage");
     node0.SetStages(stgs0);
     area1.AddNode(node0);
     Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder node1 = new Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder("TestMain");
     node1.AddBlock("@S", "@S", Mozart.SeePlan.Pegging.BlockType.START);
     node1.AddNextBlockMap("@S", "TestRunStage");
     node1.AddFunction("@S", ((Mozart.SeePlan.Pegging.GetLastPeggingStepDelegate)(this.fTestMain.GETLASTPEGGINGSTEP)));
     node1.AddBlock("TestRunStage", "TestRunStage", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("TestRunStage", "TestWaitStage");
     node1.AddBlock("TestWaitStage", "TestWaitStage", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("TestWaitStage", "@E");
     node1.AddBlock("@E", "@E", Mozart.SeePlan.Pegging.BlockType.END);
     node1.AddFunction("@E", ((Mozart.SeePlan.Pegging.GetPrevPeggingStepDelegate)(this.fTestMain.GETPREVPEGGINGSTEP)));
     area1.AddNode(node1);
     area0.AddNext(area1);
     Pegging.SetStart(area0);
     return(Pegging.Build());
 }
Пример #2
0
 /// <summary>
 /// SAPSPegger's Pegger Model
 /// </summary>
 private Mozart.SeePlan.Pegging.IPeggerModel2 BuildSAPSPegger()
 {
     Mozart.SeePlan.Pegging.PeggerModelBuilder2     SAPSPegger = new Mozart.SeePlan.Pegging.PeggerModelBuilder2("SAPSPegger");
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area0      = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("Start", false);
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area1      = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("SmartFactory", false);
     Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder node0      = new Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder("PegInit");
     System.Collections.Generic.List <string>       stgs0      = new System.Collections.Generic.List <string>();
     stgs0.Add("Init");
     node0.SetStages(stgs0);
     area1.AddNode(node0);
     Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder node1 = new Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder("StepPegging");
     node1.AddBlock("@S", "@S", Mozart.SeePlan.Pegging.BlockType.START);
     node1.AddNextBlockMap("@S", "OutPartChange");
     node1.AddFunction("@S", ((Mozart.SeePlan.Pegging.GetLastPeggingStepDelegate)(this.fpStepPegging.GETLASTPEGGINGSTEP)));
     node1.AddBlock("OutPartChange", "OutPartChange", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("OutPartChange", "RunPeg");
     node1.AddBlock("RunPeg", "RunPeg", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("RunPeg", "InPartChange");
     node1.AddBlock("InPartChange", "InPartChange", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("InPartChange", "WaitPeg");
     node1.AddBlock("WaitPeg", "WaitPeg", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("WaitPeg", "WaitPartChange");
     node1.AddBlock("WaitPartChange", "WaitPartChange", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("WaitPartChange", "@E");
     node1.AddBlock("@E", "@E", Mozart.SeePlan.Pegging.BlockType.END);
     node1.AddFunction("@E", ((Mozart.SeePlan.Pegging.GetPrevPeggingStepDelegate)(this.fpStepPegging.GETPREVPEGGINGSTEP)));
     area1.AddNode(node1);
     Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder node2 = new Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder("PostPeg");
     System.Collections.Generic.List <string>       stgs2 = new System.Collections.Generic.List <string>();
     stgs2.Add("PostPegStage");
     node2.SetStages(stgs2);
     area1.AddNode(node2);
     area0.AddNext(area1);
     SAPSPegger.SetStart(area0);
     return(SAPSPegger.Build());
 }
Пример #3
0
 /// <summary>
 /// Pegging's Pegger Model
 /// </summary>
 private Mozart.SeePlan.Pegging.IPeggerModel2 BuildPegging()
 {
     Mozart.SeePlan.Pegging.PeggerModelBuilder2     Pegging = new Mozart.SeePlan.Pegging.PeggerModelBuilder2("Pegging");
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area0   = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("Start", false);
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2      area1   = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("PRODUCTION_LINE", false);
     Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder node0   = new Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder("Initialization");
     System.Collections.Generic.List <string>       stgs0   = new System.Collections.Generic.List <string>();
     stgs0.Add("SmoothDemand");
     stgs0.Add("GenInitTarget");
     stgs0.Add("ApplyAct");
     stgs0.Add("InitWip");
     stgs0.Add("InitSupplyPlan");
     node0.SetStages(stgs0);
     area1.AddNode(node0);
     Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder node1 = new Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder("Pegging");
     node1.AddBlock("@S", "@S", Mozart.SeePlan.Pegging.BlockType.START);
     node1.AddNextBlockMap("@S", "WriteOutTarget");
     node1.AddFunction("@S", ((Mozart.SeePlan.Pegging.GetLastPeggingStepDelegate)(this.fPegging.GETLASTPEGGINGSTEP)));
     node1.AddBlock("WriteOutTarget", "WriteOutTarget", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("WriteOutTarget", "PegRunWip");
     node1.AddBlock("PegRunWip", "PegRunWip", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("PegRunWip", "ShiftRunTime");
     node1.AddBlock("ShiftRunTime", "ShiftRunTime", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("ShiftRunTime", "ApplyYield");
     node1.AddBlock("ApplyYield", "ApplyYield", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("ApplyYield", "ChangePart");
     node1.AddBlock("ChangePart", "ChangePart", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("ChangePart", "UpdateTargetInfo");
     node1.AddBlock("UpdateTargetInfo", "UpdateTargetInfo", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("UpdateTargetInfo", "WriteInTarget");
     node1.AddBlock("WriteInTarget", "WriteInTarget", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("WriteInTarget", "PegWaitWip");
     node1.AddBlock("PegWaitWip", "PegWaitWip", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("PegWaitWip", "ShiftWaitTime");
     node1.AddBlock("ShiftWaitTime", "ShiftWaitTime", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node1.AddNextBlockMap("ShiftWaitTime", "@E");
     node1.AddBlock("@E", "@E", Mozart.SeePlan.Pegging.BlockType.END);
     node1.AddFunction("@E", ((Mozart.SeePlan.Pegging.GetPrevPeggingStepDelegate)(this.fPegging.GETPREVPEGGINGSTEP)));
     area1.AddNode(node1);
     Mozart.SeePlan.Pegging.PeggerAreaBuilder2       area2 = new Mozart.SeePlan.Pegging.PeggerAreaBuilder2("DIE_BANK", false);
     Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder node2 = new Mozart.SeePlan.Pegging.PeggerProcessNodeBuilder("Pegging");
     node2.AddBlock("@S", "@S", Mozart.SeePlan.Pegging.BlockType.START);
     node2.AddNextBlockMap("@S", "WriteOutTarget");
     node2.AddFunction("@S", ((Mozart.SeePlan.Pegging.GetLastPeggingStepDelegate)(this.fPegging.GETLASTPEGGINGSTEP)));
     node2.AddBlock("WriteOutTarget", "WriteOutTarget", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node2.AddNextBlockMap("WriteOutTarget", "KitPeg");
     node2.AddBlock("KitPeg", "KitPeg", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node2.AddNextBlockMap("KitPeg", "WriteInTarget");
     node2.AddBlock("WriteInTarget", "WriteInTarget", Mozart.SeePlan.Pegging.BlockType.STAGE);
     node2.AddNextBlockMap("WriteInTarget", "@E");
     node2.AddBlock("@E", "@E", Mozart.SeePlan.Pegging.BlockType.END);
     node2.AddFunction("@E", ((Mozart.SeePlan.Pegging.GetPrevPeggingStepDelegate)(this.fPegging.GETPREVPEGGINGSTEP)));
     area2.AddNode(node2);
     Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder node3 = new Mozart.SeePlan.Pegging.PeggerNormalNodeBuilder("Record");
     System.Collections.Generic.List <string>       stgs3 = new System.Collections.Generic.List <string>();
     stgs3.Add("WriteUnpeg");
     node3.SetStages(stgs3);
     area2.AddNode(node3);
     area1.AddNext(area2);
     area0.AddNext(area1);
     Pegging.SetStart(area0);
     return(Pegging.Build());
 }