Beispiel #1
0
        ///
        ///	 <summary> * add an audit, called internally by the specialized functions
        ///	 *  </summary>
        ///	 * <param name="typ"> audit type </param>
        ///	 * <param name="by"> the author keyword </param>
        ///	 * <returns> JDFAudit
        ///	 *
        ///	 *         default: AddAudit(typ, JDFConstants.EMPTYSTRING) </returns>
        ///
        public virtual JDFAudit addAudit(JDFAudit.EnumAuditType typ, string by)
        {
            JDFAudit l = (JDFAudit)appendElement(typ.getName(), null);

            if (by != null)
            {
                l.setAuthor(by);
            }

            JDFNode r = getJDFRoot();

            if (r.hasAttribute(AttributeName.SPAWNID))
            {
                l.setSpawnID(r.getSpawnID(false));
            }

            return(l);
        }
        public override void setUp()
        {
            agentName = JDFAudit.getStaticAgentName();
            JDFElement.setLongID(false);
            JDFAudit.setStaticAgentName("JDF MISPre golden ticket generator");
            base.setUp();
            vMap = new VJDFAttributeMap();
            JDFAttributeMap map = new JDFAttributeMap();

            for (int i = 0; i < 4; i++)
            {
                map.put(EnumPartIDKey.SignatureName, "Sig1");
                map.put(EnumPartIDKey.SheetName, i == 0 ? "Cover" : "Sheet" + i);
                map.put(EnumPartIDKey.Side, "Front");
                vMap.Add(new JDFAttributeMap(map));
                map.put(EnumPartIDKey.Side, "Back");
                vMap.Add(new JDFAttributeMap(map));
            }
        }
Beispiel #3
0
        /// <summary>
        /// All the setUp calls except for base.setUp.
        /// Use when you want to redo a setup without doign a teardown.
        /// </summary>
        public void reSetUp()
        {
            JDFElement.setLongID(false);
            JDFAudit.setStaticAgentName(null);
            JDFAudit.setStaticAgentVersion(null);
            JDFAudit.setStaticAuthor(null);

            doc = new JDFDoc("JDF");
            n   = doc.getJDFRoot();
            n.setJobID("JobID");
            n.setType(EnumType.Combined);
            n.setTypes(new VString("Interpreting Rendering DigitalPrinting Stitching", " "));
            comp       = (JDFComponent)n.addResource(ElementName.COMPONENT, null, EnumUsage.Output, null, null, null, null);
            rlComp     = n.getLink(comp, null);
            digiParams = (JDFDigitalPrintingParams)n.addResource(ElementName.DIGITALPRINTINGPARAMS, null, EnumUsage.Input, null, null, null, null);
            med        = (JDFMedia)n.appendMatchingResource(ElementName.MEDIA, EnumProcessUsage.AnyInput, null);
            med.setResStatus(EnumResStatus.Available, false);
            rlMedia = n.getLink(med, null);
            ruli    = (JDFRunList)n.appendMatchingResource(ElementName.RUNLIST, EnumProcessUsage.AnyInput, null);
        }
Beispiel #4
0
        ///
        ///	 <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();
        }
Beispiel #5
0
 public override void tearDown()
 {
     JDFAudit.setStaticAgentName(agentName);
     JDFElement.setLongID(true);
     base.tearDown();
 }
Beispiel #6
0
        ///
        ///     <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()
        {
            string icsTag = "IDP_L" + icsLevel + "-" + theVersion.getName();

            theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("IDP Golden Ticket Example Job - version: " + JDFAudit.software());
            }
            base.init();
            setActivePart(vParts, true);
            initDocumentRunList();
            initDigitalPrintingParams();
            initOutputComponent();
            initInterpretingParams();
        }
Beispiel #7
0
        ///
        ///	 <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()
        {
            theNode.setType(EnumType.ProcessGroup);
            initColsFromParent();
            theNode.linkOutputs(thePreviousNode);

            // put level methods?

            int ncols = getNCols();

            while (cols.Count > ncols && ncols > 0)
            {
                cols.RemoveAt(ncols);
            }

            if (icsLevel < 0)
            {
                return;
            }
            string icsTag = "MISPre_L" + icsLevel + "-" + theVersion.getName();

            theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("MISPre Golden Ticket Example Job - version: " + JDFAudit.software());
            }

            string cat = getCategory();

            if (MISPRE_CONTENTCREATION.Equals(cat))
            {
                initGBContentCreation();
            }
            else if (MISPRE_PREPRESSPREPARATION.Equals(cat))
            {
                initGBPrePressPreparation();
            }
            else if (MISPRE_IMPOSITIONPREPARATION.Equals(cat))
            {
                initGBImpositionPreparation();
            }
            else if (MISPRE_IMPOSITIONRIPING.Equals(cat))
            {
                initGBImpositionRIPing();
            }
            else if (MISPRE_PLATESETTING.Equals(cat))
            {
                initGBPlateSetting();
            }
            else if (MISPRE_PLATEMAKING.Equals(cat))
            {
                initGBPlateMaking();
            }
            base.init();
            setActivePart(vParts, true);
        }
Beispiel #8
0
 ///
 ///	 <summary> * Append a new child if no identical child exists
 ///	 *  </summary>
 ///	 * <param name="p"> the Child to add to the element </param>
 ///
 public virtual void appendUnique(JDFAudit p)
 {
     appendUniqueGeneric(p);
 }
Beispiel #9
0
        ///
        ///	 <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()
        {
            initColsFromParent();
            initAmountsFromParent();
            if (partIDKeys == null)
            {
                partIDKeys = new VString("SignatureName SheetName Side Separation", null);
            }

            // put level methods?

            int ncols = getNCols();

            while (cols.Count > ncols && ncols > 0)
            {
                cols.RemoveAt(ncols);
            }

            if (icsLevel < 0)
            {
                return;
            }

            string icsTag = "MISCPS_L" + icsLevel + "-" + theVersion.getName();

            theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("MISCPS Golden Ticket Example Job - version: " + JDFAudit.software());
            }

            if (!grayBox)
            {
                theNode.setType(EnumType.ConventionalPrinting);
            }
            initColorantControl();
            initConventionalPrintingParams();
            JDFMedia m = initPaperMedia();

            initPlateXM(EnumUsage.Input);
            initDevice(thePreviousNode);
            JDFComponent c = initOutputComponent();

            initInk();
            base.init();
            initPreview();
            setActivePart(vParts, true);
            theStatusCounter.setTrackWaste(c.getID(), true);
            theStatusCounter.setTrackWaste(m.getID(), true);
        }
Beispiel #10
0
 public override void setUp()
 {
     base.setUp();
     JDFAudit.setStaticAgentName("JDF MISCP golden ticket generator");
 }
Beispiel #11
0
        ///
        ///	 <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 (icsLevel < 0)
            {
                return;
            }
            // String icsTag="MISCPS_L"+icsLevel+"-"+theVersion.getName();
            // theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ",
            // true);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("Product Golden Ticket Example Job - version: " + JDFAudit.software());
            }
            theNode.setType(EnumType.Product);

            base.init();
        }
Beispiel #12
0
        ///
        ///     <summary> *  </summary>
        ///
        protected internal virtual void initJDF()
        {
            string icsTag = "Base_L" + baseICSLevel + "-" + theVersion.getName();

            theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true);
            theNode.setVersion(theVersion);
            theNode.setMaxVersion(theVersion);
            theNode.setStatus(EnumNodeStatus.Waiting);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("Base Golden Ticket Example Job - version: " + JDFAudit.software());
            }

            if (theParentNode == null && !theNode.hasAttribute(AttributeName.COMMENTURL))
            {
                theNode.setCommentURL(UrlUtil.StringToURL("http://www.example.com").ToString());
            }
        }