/// /// <summary> * initializes this node to a given ICS version </summary> /// * <param name="icsLevel"> the level to init to (1,2 or 3) </param> /// public override void init() { if (misICSLevel < 0) { return; } string icsTag = "MIS_L" + misICSLevel + "-" + theVersion.getName(); theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true); if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME)) { theNode.setDescriptiveName("MIS Golden Ticket Example Job - version: " + JDFAudit.software()); } if (!theNode.hasAncestorAttribute(AttributeName.JOBID, null)) { theNode.setJobID("Job" + JDFElement.uniqueID(0)); } //ORIGINAL LINE: final VString types = getTypes(); VString types = getTypes(); if (types != null) { theNode.setCategory(getCategory()); theNode.setCombined(types); if (grayBox) { theNode.setType(org.cip4.jdflib.node.JDFNode.EnumType.ProcessGroup); } } initNodeInfo(); initCustomerInfo(); }
public virtual void setUp() { JDFElement.uniqueID(1); JDFIntegerRange.setDefaultDef(0); agentName = JDFAudit.getStaticAgentName(); agentVersion = JDFAudit.getStaticAgentVersion(); author = JDFAudit.getStaticAuthor(); mem = getCurrentMem(); }
/// /// <summary> * creates a ProcessRun when this is submitted should be called by the receiving device when it initially receives /// * and enqueues the JDF /// * </summary> /// * <param name="qe"> the queuentry element to copy information from, if null parameters will be genrated on the fly </param> /// * <returns> the newly created processRun </returns> /// public virtual JDFProcessRun createSubmitProcessRun(JDFQueueEntry qe) { JDFProcessRun pr = (JDFProcessRun)addAudit(EnumAuditType.ProcessRun, null); pr.setSubmissionTime(new JDFDate()); if (qe != null) { pr.setPartMapVector(qe.getPartMapVector()); pr.copyAttribute(AttributeName.QUEUEENTRYID, qe, null, null, null); if (qe.hasAttribute(AttributeName.SUBMISSIONTIME)) { pr.copyAttribute(AttributeName.SUBMISSIONTIME, qe, null, null, null); } } if (!pr.hasAttribute(AttributeName.SUBMISSIONTIME)) { pr.setSubmissionTime(new JDFDate()); } if (!pr.hasAttribute(AttributeName.QUEUEENTRYID)) { pr.setAttribute("QueueEntryID", "qe_" + JDFElement.uniqueID(0)); } return(pr); }