Package org.cip4.jdflib.goldenticket
Class BaseGoldenTicket
java.lang.Object
org.cip4.jdflib.goldenticket.BaseGoldenTicket
- Direct Known Subclasses:
JMFGoldenTicket,MISGoldenTicket,ODPGoldenTicket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VStringprotected intbooleanbooleanprotected Stringthe list of separation namesstatic Stringbooleanintgood for plan and executeprotected intstatic Stringint[]protected VStringintintlist of partition keys NOT to partition byif set, the returnURL will be initializedprotected JDFNodeprotected JDFNodeprotected JDFNodeprotected JDFNodeprotected StatusCounterprotected JDFElement.EnumVersionintpwaste for plan and execute -
Constructor Summary
ConstructorsConstructorDescriptionBaseGoldenTicket(int pIcsLevel, JDFElement.EnumVersion jdfVersion) create a BaseGoldenTicketBaseGoldenTicket(BaseGoldenTicket parent) create a BaseGoldenTicket -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAmountLink(String link) add the type of amount link for resource audits etcprotected JDFNodeaddJDFNode(JDFNode node, JDFNode.EnumType t) voidadd a kid to be makeready and executedvoidadd a signature sheet combinationvoidassign a node to this golden ticket instancestatic VJDFAttributeMapcreateSheetMap(int n) voidexecute(VJDFAttributeMap vMap, boolean bOutAvail, boolean bFirst) simulate execution of this node the internal node will be modified to reflect the excutionvoidexecuteAll(VJDFAttributeMap parts) execute for all kidsprotected voidprotected voiddo the last steps prior to processrunprotected VStringgetCols()static Stringgets the current state of the nodestatic StringintgetNCols()getNode()gets the current state of the nodeprotected VElementprotected VJDFAttributeMapgetReducedMap(VString reduceKeys) get a reduced partionmap missing the keys in reduceKeysgetTypes()get the correct Types from categoryvoidinit()initializes this node to a given ICS versionvoidinitAuditPool(JDFNode node) protected voidprotected JDFColorPoolprotected JDFDeviceinitDevice(JDFNode previousNode) protected JDFRunListprotected voidinitJDF()protected JDFNodeInfoprotected JDFComponentprotected JDFMediaprotected JDFMediaprotected voidvoidsimulate makeReady of this node the internal node will be modified to reflect the makeready all required resources should be availablevoidmakeready for all kidsprotected voidrunphases(int pgood, int pwaste, boolean bOutAvail, boolean bFirst) protected final voidrunSinglePhase(int pgood, int pwaste, boolean bOutAvail, boolean bFirst) voidschedule(VJDFAttributeMap partsToSchedule, int starthours, int durationhours) schedule this node the nodeinfo will be modifiedvoidsetActivePart(VJDFAttributeMap vp, boolean bFirst) voidsetCategory(String _category) static voidsetDeviceURL(String pdeviceURL) static voidvoidsetParent(boolean bProduct) voidsetParent(ProductGoldenTicket parent) voidsetPreviousNode(JDFNode node) assign a previous node to this golden ticket instance, e.g.protected voidtoString()voidwrite2File(String file, int indent)
-
Field Details
-
amountLinks
-
theNode
-
theExpandedNode
-
thePreviousNode
-
theParentNode
-
category
-
catMap
-
theParentProduct
-
theVersion
-
baseICSLevel
protected int baseICSLevel -
icsLevel
protected int icsLevel -
theStatusCounter
-
misURL
-
deviceURL
-
vParts
-
cols
the list of separation names -
colsActual
-
plateReduction
list of partition keys NOT to partition by -
nCols
public int[] nCols -
paperProductID
-
partIDKeys
-
workStyle
-
devID
-
good
public int goodgood for plan and execute -
waste
public int wastepwaste for plan and execute -
partsAtOnce
public int partsAtOnce -
partsForAvailable
public int partsForAvailable -
bExpandGrayBox
public boolean bExpandGrayBox -
bPartitionedPlateMedia
public boolean bPartitionedPlateMedia -
paperMedia
-
returnURL
if set, the returnURL will be initialized -
getNIFromParent
public boolean getNIFromParent -
m_pdfFile
-
-
Constructor Details
-
BaseGoldenTicket
create a BaseGoldenTicket- Parameters:
pIcsLevel- the level to init to (1,2 or 3)jdfVersion- the version to generate a golden ticket for
-
BaseGoldenTicket
create a BaseGoldenTicket- Parameters:
parent-
-
-
Method Details
-
getCols
- Returns:
-
createSheetMap
- Parameters:
n-- Returns:
-
initNodeInfo
- Returns:
-
assign
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
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
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
- Parameters:
vp-bFirst-
-
executeAll
execute for all kids- Parameters:
parts-
-
execute
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
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
- Parameters:
bProduct-
-
init
public void init()initializes this node to a given ICS version -
initDevice
- Parameters:
previousNode-- Returns:
-
initAuditPool
- Parameters:
node-
-
addJDFNode
- Parameters:
node-t-- Returns:
-
initJDF
protected void initJDF() -
getICSVersions
- Returns:
-
getNodeLinks
- Returns:
-
getNode
gets the current state of the node- Returns:
- the theNode
-
getExpandedNode
gets the current state of the node- Returns:
- the theNode
-
toString
-
write2File
- Parameters:
file-indent-
-
getStatusCounter
- Returns:
-
getDeviceURL
- Returns:
-
setDeviceURL
- Parameters:
pdeviceURL-
-
getMisURL
- Returns:
-
setMisURL
- Parameters:
_misURL-
-
addSheet
add a signature sheet combination- Parameters:
sheetName-
-
addAmountLink
add the type of amount link for resource audits etc- Parameters:
link-
-
initColorantControl
protected void initColorantControl() -
initColorPool
- Returns:
-
initPaperMedia
- Returns:
-
getReducedMap
get a reduced partionmap missing the keys in reduceKeys- Parameters:
reduceKeys-- Returns:
- the reduced map
-
initPlateXM
- Parameters:
usage-
-
initPlateMedia
- Returns:
- the Media
-
getNCols
public int getNCols()- Returns:
- the number of colors
-
initDocumentRunList
- Returns:
-
initOutputComponent
- Returns:
-
fillCatMaps
protected void fillCatMaps() -
getTypes
get the correct Types from category- Returns:
-
getCategory
- Returns:
-
setCategory
- Parameters:
_category-
-