org.cip4.jdflib.goldenticket
Class MISGoldenTicket

java.lang.Object
  extended by org.cip4.jdflib.goldenticket.BaseGoldenTicket
      extended by org.cip4.jdflib.goldenticket.MISGoldenTicket
Direct Known Subclasses:
IDPGoldenTicket, MISCPGoldenTicket, MISFinGoldenTicket, MISPreGoldenTicket, NarrowWebGoldenTicket, PackagingGoldenTicket, ProductGoldenTicket

public class MISGoldenTicket
extends BaseGoldenTicket

Author:
prosirai class that generates golden tickets based on ICS levels etc

Field Summary
protected  String category
           
protected  Map<String,VString> catMap
           
 int duration
          seconds this was active
protected  boolean grayBox
           
protected  int jmfICSLevel
           
protected  int misICSLevel
           
 int preStart
          seconds ago that this started
 int scheduleDuration
          duration in hours from now that this should be scheduled, if -1 do not schedule
 int scheduleHours
          seconds from now that this should be scheduled, if -1 do not schedule
 
Fields inherited from class org.cip4.jdflib.goldenticket.BaseGoldenTicket
amountLinks, baseICSLevel, bExpandGrayBox, bPartitionedPlateMedia, cols, colsActual, deviceURL, devID, getNIFromParent, good, icsLevel, m_pdfFile, misURL, nCols, paperMedia, paperProductID, partIDKeys, partsAtOnce, partsForAvailable, plateReduction, returnURL, theExpandedNode, theNode, theParentNode, theParentProduct, thePreviousNode, theStatusCounter, theVersion, vParts, waste, workStyle
 
Constructor Summary
MISGoldenTicket(int _icsLevel, JDFElement.EnumVersion jdfVersion, int jmfLevel)
          create a BaseGoldenTicket
MISGoldenTicket(MISGoldenTicket parent)
           
 
Method Summary
 void addAmountLink(String link)
          add the type of amount link for resource audits etc
 void assign(JDFNode node)
          assign a node to this golden ticket instance
 void execute(VJDFAttributeMap vNodeMap, boolean bOutAvail, boolean bFirst)
          simulate execution of this node the internal node will be modified to reflect the excution
protected  void fillCatMaps()
           
 String getCategory()
           
 VString getICSVersions()
           
 VString getTypes()
          get the correct Types from category
 void init()
          initializes this node to a given ICS version
protected  JDFCustomerInfo initCustomerInfo()
           
protected  JDFDevice initDevice(JDFNode reuseNode)
           
protected  JDFNodeInfo initNodeInfo()
           
 boolean isNodeInfoSubscription()
           
 void setCategory(String _category)
           
 void setGrayBox(boolean _grayBox)
           
 void setNodeInfoSubscription(boolean nodeInfoSubscription)
           
 
Methods inherited from class org.cip4.jdflib.goldenticket.BaseGoldenTicket
addJDFNode, addKid, addSheet, createSheetMap, executeAll, finalize, getDeviceURL, getMisURL, getNCols, getNode, getNodeLinks, getReducedMap, getStatusCounter, initAuditPool, initColorantControl, initDocumentRunList, initJDF, initOutputComponent, initPaperMedia, initPlateMedia, initPlateXM, makeReady, makeReadyAll, runphases, runSinglePhase, schedule, setActivePart, setDeviceURL, setMisURL, setParent, setPreviousNode, setVersion, toString, write2File
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

misICSLevel

protected int misICSLevel

jmfICSLevel

protected int jmfICSLevel

catMap

protected Map<String,VString> catMap

category

protected String category

preStart

public int preStart
seconds ago that this started


duration

public int duration
seconds this was active


scheduleHours

public int scheduleHours
seconds from now that this should be scheduled, if -1 do not schedule


scheduleDuration

public int scheduleDuration
duration in hours from now that this should be scheduled, if -1 do not schedule


grayBox

protected boolean grayBox
Constructor Detail

MISGoldenTicket

public MISGoldenTicket(int _icsLevel,
                       JDFElement.EnumVersion jdfVersion,
                       int jmfLevel)
create a BaseGoldenTicket

Parameters:
_icsLevel - the level to init to (1,2 or 3)
jdfVersion - the version to generate a golden ticket for
jmfLevel - level of jmf ICS to support

MISGoldenTicket

public MISGoldenTicket(MISGoldenTicket parent)
Parameters:
parent -
Method Detail

getICSVersions

public VString getICSVersions()
Overrides:
getICSVersions in class BaseGoldenTicket
Returns:
the ics versions
See Also:
BaseGoldenTicket.getICSVersions()

isNodeInfoSubscription

public boolean isNodeInfoSubscription()
Returns:
the bNodeInfoSubscription

setNodeInfoSubscription

public void setNodeInfoSubscription(boolean nodeInfoSubscription)
Parameters:
nodeInfoSubscription - the bNodeInfoSubscription to set

assign

public void assign(JDFNode node)
Description copied from class: BaseGoldenTicket
assign a node to this golden ticket instance

Overrides:
assign in class BaseGoldenTicket
Parameters:
node - the node to assign, if null a new conforming node is generated from scratch

initNodeInfo

protected JDFNodeInfo initNodeInfo()
Overrides:
initNodeInfo in class BaseGoldenTicket
Returns:

execute

public void execute(VJDFAttributeMap vNodeMap,
                    boolean bOutAvail,
                    boolean bFirst)
simulate execution of this node the internal node will be modified to reflect the excution

Overrides:
execute in class BaseGoldenTicket

init

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

Overrides:
init in class BaseGoldenTicket

initCustomerInfo

protected JDFCustomerInfo initCustomerInfo()
Returns:

initDevice

protected JDFDevice initDevice(JDFNode reuseNode)
Overrides:
initDevice in class BaseGoldenTicket
Returns:

addAmountLink

public void addAmountLink(String link)
add the type of amount link for resource audits etc

Overrides:
addAmountLink in class BaseGoldenTicket
Parameters:
link -

getCategory

public String getCategory()
Returns:

setCategory

public void setCategory(String _category)
Parameters:
_category -

getTypes

public VString getTypes()
get the correct Types from category

Returns:

setGrayBox

public void setGrayBox(boolean _grayBox)
Parameters:
_grayBox - the grayBox to set

fillCatMaps

protected void fillCatMaps()


Copyright © 2013. All Rights Reserved.