/// /// <summary> * create a BaseGoldenTicket </summary> /// * <param name="icsLevel"> the level to init to (1,2 or 3) </param> /// * <param name="jdfVersion"> the version to generate a golden ticket for </param> /// * <param name="jmfLevel"> level of jmf ICS to support </param> /// * <param name="misLevel"> level of MIS ICS to support </param> /// * <param name="isGrayBox"> if true, write a grayBox </param> /// public IDPGoldenTicket(IDPGoldenTicket previous, VJDFAttributeMap _vparts) : base(previous.misICSLevel, previous.theVersion, previous.jmfICSLevel) { partIDKeys = new VString(previous.partIDKeys); vParts = _vparts == null ? new VJDFAttributeMap(previous.vParts) : _vparts; icsLevel = previous.icsLevel; nCols = previous.nCols; workStyle = previous.workStyle; thePreviousNode = previous.theNode; theParentNode = previous.theParentNode; }
public virtual void testIDPSimple() { IDPGoldenTicket idpGoldenTicket = new IDPGoldenTicket(1); idpGoldenTicket.assign(null); JDFNode node = idpGoldenTicket.getNode(); Assert.IsTrue(node.getICSVersions(false).Contains("Base_L2-1.3")); Assert.IsTrue(node.getICSVersions(false).Contains("JMF_L2-1.3")); Assert.IsTrue(node.getICSVersions(false).Contains("MIS_L1-1.3")); Assert.IsTrue(node.getICSVersions(false).Contains("IDP_L1-1.3")); idpGoldenTicket.good = 1000; idpGoldenTicket.waste = 90; write3GTFiles(this, idpGoldenTicket, "IDP_Simple"); }