Exemplo n.º 1
0
 ///
 ///	 <summary> * add a kid to be makeready and executed
 ///	 *  </summary>
 ///	 * <param name="node"> the node to assign, if null a new conforming node is generated from scratch </param>
 ///
 public virtual void addKid(BaseGoldenTicket bt)
 {
     if (!vKids.Contains(bt))
     {
         vKids.Add(bt);
     }
 }
Exemplo n.º 2
0
        public virtual void testBase()
        {
            BaseGoldenTicket bgt = new BaseGoldenTicket(1, null);

            bgt.assign(null);
            JDFNode node = bgt.getNode();

            node.getOwnerDocument_JDFElement().write2File(sm_dirTestDataTemp + "GoldenTicket_Base_1.jdf", 2, false);
            Assert.IsTrue(node.getICSVersions(false).Contains("Base_L1-1.3"));
            node.setType(JDFNode.EnumType.ProcessGroup);
            Assert.IsTrue(node.isValid(EnumValidationLevel.Complete));
        }
Exemplo n.º 3
0
        ///
        ///	 <summary> * create 3 files based on a gt
        ///	 *  </summary>
        ///	 * <param name="goldenTicket"> </param>
        ///	 * <param name="templateName"> </param>
        ///	 * <param name="good"> </param>
        ///	 * <param name="waste"> </param>
        ///
        protected internal static void write3GTFiles(JDFTestCaseBase testObj, BaseGoldenTicket goldenTicket, string templateName)
        {
            goldenTicket.write2File(testObj.sm_dirTestDataTemp + "GoldenTicket_Manager_" + templateName + ".jdf", 2);
            Assert.IsTrue(goldenTicket.getNode().isValid(EnumValidationLevel.Complete));

            goldenTicket.makeReadyAll();
            goldenTicket.write2File(testObj.sm_dirTestDataTemp + "GoldenTicket_MakeReady_" + templateName + ".jdf", 2);
            Assert.IsTrue(goldenTicket.getNode().isValid(EnumValidationLevel.Complete), testObj.sm_dirTestDataTemp + "GoldenTicket_MakeReady_" + templateName + ".jdf");

            goldenTicket.executeAll(null);
            goldenTicket.write2File(testObj.sm_dirTestDataTemp + "GoldenTicket_Worker_" + templateName + ".jdf", 2);
            Assert.IsTrue(goldenTicket.getNode().isValid(EnumValidationLevel.Complete));
        }
Exemplo n.º 4
0
 ///
 ///	 <summary> * create a BaseGoldenTicket
 ///	 *  </summary>
 ///	 * <param name="parent">
 ///	 *  </param>
 ///
 public BaseGoldenTicket(BaseGoldenTicket parent)
 {
     baseICSLevel           = parent.baseICSLevel;
     theVersion             = parent.theVersion;
     theStatusCounter       = new StatusCounter(null, null, null);
     bExpandGrayBox         = parent.bExpandGrayBox;
     bPartitionedPlateMedia = parent.bPartitionedPlateMedia;
     cols          = new VString(parent.cols);
     colsActual    = new VString(parent.colsActual);
     nCols         = parent.nCols;
     devID         = parent.devID;
     good          = parent.good;
     waste         = parent.waste;
     paperMedia    = parent.paperMedia;
     partsAtOnce   = parent.partsAtOnce;
     theParentNode = parent.getNode();
     vParts        = new VJDFAttributeMap(parent.vParts);
     partIDKeys    = new VString(parent.partIDKeys);
     workStyle     = parent.workStyle;
     JDFElement.setLongID(false);
     parent.addKid(this);
 }