Class BaseGoldenTicket

java.lang.Object
org.cip4.jdflib.goldenticket.BaseGoldenTicket
Direct Known Subclasses:
JMFGoldenTicket, MISGoldenTicket, ODPGoldenTicket

public class BaseGoldenTicket extends Object
  • Field Details

    • theNode

      protected JDFNode theNode
    • theExpandedNode

      protected JDFNode theExpandedNode
    • thePreviousNode

      protected JDFNode thePreviousNode
    • theParentNode

      protected JDFNode theParentNode
    • category

      protected String category
    • catMap

      protected Map<String,VString> catMap
    • theParentProduct

      public JDFNode theParentProduct
    • theVersion

      protected JDFElement.EnumVersion theVersion
    • baseICSLevel

      protected int baseICSLevel
    • icsLevel

      protected int icsLevel
    • theStatusCounter

      protected StatusCounter theStatusCounter
    • misURL

      public static String misURL
    • deviceURL

      public static String deviceURL
    • vParts

      public VJDFAttributeMap vParts
    • cols

      public VString cols
      the list of separation names
    • colsActual

      public VString colsActual
    • plateReduction

      public String plateReduction
      list of partition keys NOT to partition by
    • nCols

      public int[] nCols
    • paperProductID

      public String paperProductID
    • partIDKeys

      protected VString partIDKeys
    • workStyle

    • devID

      public String devID
    • good

      public int good
      good for plan and execute
    • waste

      public int waste
      pwaste for plan and execute
    • partsAtOnce

      public int partsAtOnce
    • partsForAvailable

      public int partsForAvailable
    • bExpandGrayBox

      public boolean bExpandGrayBox
    • bPartitionedPlateMedia

      public boolean bPartitionedPlateMedia
    • paperMedia

      public JDFMedia paperMedia
    • returnURL

      public String returnURL
      if set, the returnURL will be initialized
    • getNIFromParent

      public boolean getNIFromParent
    • m_pdfFile

      public String m_pdfFile
  • Constructor Details

    • BaseGoldenTicket

      public BaseGoldenTicket(int pIcsLevel, JDFElement.EnumVersion jdfVersion)
      create a BaseGoldenTicket
      Parameters:
      pIcsLevel - the level to init to (1,2 or 3)
      jdfVersion - the version to generate a golden ticket for
    • BaseGoldenTicket

      public BaseGoldenTicket(BaseGoldenTicket parent)
      create a BaseGoldenTicket
      Parameters:
      parent -
  • Method Details

    • getCols

      protected VString getCols()
      Returns:
    • createSheetMap

      public static VJDFAttributeMap createSheetMap(int n)
      Parameters:
      n -
      Returns:
    • initNodeInfo

      protected JDFNodeInfo initNodeInfo()
      Returns:
    • assign

      public void assign(JDFNode node)
      assign a node to this golden ticket instance
      Parameters:
      node - the node to assign, if null a new conforming node is generated from scratch
    • setPreviousNode

      public void setPreviousNode(JDFNode node)
      assign a previous node to this golden ticket instance, e.g. an imagesetting node
      Parameters:
      node - the node to assign, if null a new conforming node is generated from scratch
    • addKid

      public void addKid(BaseGoldenTicket bt)
      add a kid to be makeready and executed
      Parameters:
      bt - the golden ticket to assign, if null a new conforming node is generated from scratch
    • makeReadyAll

      public void makeReadyAll()
      makeready for all kids
    • makeReady

      public void makeReady()
      simulate makeReady of this node the internal node will be modified to reflect the makeready all required resources should be available
    • setActivePart

      public void setActivePart(VJDFAttributeMap vp, boolean bFirst)
      Parameters:
      vp -
      bFirst -
    • executeAll

      public void executeAll(VJDFAttributeMap parts)
      execute for all kids
      Parameters:
      parts -
    • execute

      public void execute(VJDFAttributeMap vMap, boolean bOutAvail, boolean bFirst)
      simulate execution of this node the internal node will be modified to reflect the excution
      Parameters:
      vMap -
      bOutAvail -
      bFirst -
    • runphases

      protected void runphases(int pgood, int pwaste, boolean bOutAvail, boolean bFirst)
    • schedule

      public void schedule(VJDFAttributeMap partsToSchedule, int starthours, int durationhours)
      schedule this node the nodeinfo will be modified
      Parameters:
      partsToSchedule -
      starthours -
      durationhours -
    • runSinglePhase

      protected final void runSinglePhase(int pgood, int pwaste, boolean bOutAvail, boolean bFirst)
      Parameters:
      pgood -
      pwaste -
      bOutAvail -
      bFirst -
    • finalizeProcess

      protected void finalizeProcess()
      do the last steps prior to processrun
    • setVersion

      protected void setVersion()
    • setParent

      public void setParent(boolean bProduct)
      Parameters:
      bProduct -
    • setParent

      public void setParent(ProductGoldenTicket parent)
      Parameters:
      bProduct -
    • init

      public void init()
      initializes this node to a given ICS version
    • initDevice

      protected JDFDevice initDevice(JDFNode previousNode)
      Parameters:
      previousNode -
      Returns:
    • initAuditPool

      public void initAuditPool(JDFNode node)
      Parameters:
      node -
    • addJDFNode

      protected JDFNode addJDFNode(JDFNode node, JDFNode.EnumType t)
      Parameters:
      node -
      t -
      Returns:
    • initJDF

      protected void initJDF()
    • getICSVersions

      public VString getICSVersions()
      Returns:
    • getNodeLinks

      protected VElement getNodeLinks()
      Returns:
    • getNode

      public JDFNode getNode()
      gets the current state of the node
      Returns:
      the theNode
    • getExpandedNode

      public JDFNode getExpandedNode()
      gets the current state of the node
      Returns:
      the theNode
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • write2File

      public void write2File(String file, int indent)
      Parameters:
      file -
      indent -
    • getStatusCounter

      public StatusCounter getStatusCounter()
      Returns:
    • getDeviceURL

      public static String getDeviceURL()
      Returns:
    • setDeviceURL

      public static void setDeviceURL(String pdeviceURL)
      Parameters:
      pdeviceURL -
    • getMisURL

      public static String getMisURL()
      Returns:
    • setMisURL

      public static void setMisURL(String _misURL)
      Parameters:
      _misURL -
    • addSheet

      public void addSheet(String sheetName)
      add a signature sheet combination
      Parameters:
      sheetName -
    • addAmountLink

      public void addAmountLink(String link)
      add the type of amount link for resource audits etc
      Parameters:
      link -
    • initColorantControl

      protected void initColorantControl()
    • initColorPool

      protected JDFColorPool initColorPool()
      Returns:
    • initPaperMedia

      protected JDFMedia initPaperMedia()
      Returns:
    • getReducedMap

      protected VJDFAttributeMap getReducedMap(VString reduceKeys)
      get a reduced partionmap missing the keys in reduceKeys
      Parameters:
      reduceKeys -
      Returns:
      the reduced map
    • initPlateXM

      protected void initPlateXM(JDFResourceLink.EnumUsage usage)
      Parameters:
      usage -
    • initPlateMedia

      protected JDFMedia initPlateMedia()
      Returns:
      the Media
    • getNCols

      public int getNCols()
      Returns:
      the number of colors
    • initDocumentRunList

      protected JDFRunList initDocumentRunList()
      Returns:
    • initOutputComponent

      protected JDFComponent initOutputComponent()
      Returns:
    • fillCatMaps

      protected void fillCatMaps()
    • getTypes

      public VString getTypes()
      get the correct Types from category
      Returns:
    • getCategory

      public String getCategory()
      Returns:
    • setCategory

      public void setCategory(String _category)
      Parameters:
      _category -