Package org.cip4.jdflib.goldenticket
Class BaseGoldenTicket
- java.lang.Object
-
- org.cip4.jdflib.goldenticket.BaseGoldenTicket
-
- Direct Known Subclasses:
JMFGoldenTicket,MISGoldenTicket,ODPGoldenTicket
public class BaseGoldenTicket extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected VStringamountLinksprotected intbaseICSLevelbooleanbExpandGrayBoxbooleanbPartitionedPlateMediaprotected java.lang.Stringcategoryprotected java.util.Map<java.lang.String,VString>catMapVStringcolsthe list of separation namesVStringcolsActualstatic java.lang.StringdeviceURLjava.lang.StringdevIDbooleangetNIFromParentintgoodgood for plan and executeprotected inticsLeveljava.lang.Stringm_pdfFilestatic java.lang.StringmisURLint[]nColsJDFMediapaperMediajava.lang.StringpaperProductIDprotected VStringpartIDKeysintpartsAtOnceintpartsForAvailablejava.lang.StringplateReductionlist of partition keys NOT to partition byjava.lang.StringreturnURLif set, the returnURL will be initializedprotected JDFNodetheExpandedNodeprotected JDFNodetheNodeprotected JDFNodetheParentNodeJDFNodetheParentProductprotected JDFNodethePreviousNodeprotected StatusCountertheStatusCounterprotected JDFElement.EnumVersiontheVersionVJDFAttributeMapvPartsintwastepwaste for plan and executeJDFAutoConventionalPrintingParams.EnumWorkStyleworkStyle
-
Constructor Summary
Constructors Constructor Description BaseGoldenTicket(int pIcsLevel, JDFElement.EnumVersion jdfVersion)create a BaseGoldenTicketBaseGoldenTicket(BaseGoldenTicket parent)create a BaseGoldenTicket
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAmountLink(java.lang.String link)add the type of amount link for resource audits etcprotected JDFNodeaddJDFNode(JDFNode node, JDFNode.EnumType t)voidaddKid(BaseGoldenTicket bt)add a kid to be makeready and executedvoidaddSheet(java.lang.String sheetName)add a signature sheet combinationvoidassign(JDFNode node)assign 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 voidfillCatMaps()protected voidfinalizeProcess()do the last steps prior to processrunjava.lang.StringgetCategory()protected VStringgetCols()static java.lang.StringgetDeviceURL()JDFNodegetExpandedNode()gets the current state of the nodeVStringgetICSVersions()static java.lang.StringgetMisURL()intgetNCols()JDFNodegetNode()gets the current state of the nodeprotected VElementgetNodeLinks()protected VJDFAttributeMapgetReducedMap(VString reduceKeys)get a reduced partionmap missing the keys in reduceKeysStatusCountergetStatusCounter()VStringgetTypes()get the correct Types from categoryvoidinit()initializes this node to a given ICS versionvoidinitAuditPool(JDFNode node)protected voidinitColorantControl()protected JDFColorPoolinitColorPool()protected JDFDeviceinitDevice(JDFNode previousNode)protected JDFRunListinitDocumentRunList()protected voidinitJDF()protected JDFNodeInfoinitNodeInfo()protected JDFComponentinitOutputComponent()protected JDFMediainitPaperMedia()protected JDFMediainitPlateMedia()protected voidinitPlateXM(JDFResourceLink.EnumUsage usage)voidmakeReady()simulate makeReady of this node the internal node will be modified to reflect the makeready all required resources should be availablevoidmakeReadyAll()makeready for all kidsprotected voidrunphases(int pgood, int pwaste, boolean bOutAvail, boolean bFirst)protected 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(java.lang.String _category)static voidsetDeviceURL(java.lang.String pdeviceURL)static voidsetMisURL(java.lang.String _misURL)voidsetParent(boolean bProduct)voidsetParent(ProductGoldenTicket parent)voidsetPreviousNode(JDFNode node)assign a previous node to this golden ticket instance, e.g.protected voidsetVersion()java.lang.StringtoString()voidwrite2File(java.lang.String file, int indent)
-
-
-
Field Detail
-
amountLinks
protected VString amountLinks
-
theNode
protected JDFNode theNode
-
theExpandedNode
protected JDFNode theExpandedNode
-
thePreviousNode
protected JDFNode thePreviousNode
-
theParentNode
protected JDFNode theParentNode
-
category
protected java.lang.String category
-
catMap
protected java.util.Map<java.lang.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 java.lang.String misURL
-
deviceURL
public static java.lang.String deviceURL
-
vParts
public VJDFAttributeMap vParts
-
cols
public VString cols
the list of separation names
-
colsActual
public VString colsActual
-
plateReduction
public java.lang.String plateReduction
list of partition keys NOT to partition by
-
nCols
public int[] nCols
-
paperProductID
public java.lang.String paperProductID
-
partIDKeys
protected VString partIDKeys
-
workStyle
public JDFAutoConventionalPrintingParams.EnumWorkStyle workStyle
-
devID
public java.lang.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 java.lang.String returnURL
if set, the returnURL will be initialized
-
getNIFromParent
public boolean getNIFromParent
-
m_pdfFile
public java.lang.String m_pdfFile
-
-
Constructor Detail
-
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 Detail
-
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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
write2File
public void write2File(java.lang.String file, int indent)- Parameters:
file-indent-
-
getStatusCounter
public StatusCounter getStatusCounter()
- Returns:
-
getDeviceURL
public static java.lang.String getDeviceURL()
- Returns:
-
setDeviceURL
public static void setDeviceURL(java.lang.String pdeviceURL)
- Parameters:
pdeviceURL-
-
getMisURL
public static java.lang.String getMisURL()
- Returns:
-
setMisURL
public static void setMisURL(java.lang.String _misURL)
- Parameters:
_misURL-
-
addSheet
public void addSheet(java.lang.String sheetName)
add a signature sheet combination- Parameters:
sheetName-
-
addAmountLink
public void addAmountLink(java.lang.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 java.lang.String getCategory()
- Returns:
-
setCategory
public void setCategory(java.lang.String _category)
- Parameters:
_category-
-
-