Package org.cip4.jdflib.node
Class NodeIdentifier
java.lang.Object
org.cip4.jdflib.node.NodeIdentifier
- All Implemented Interfaces:
IMatches,INodeIdentifiable
class to identify nodes even after parsing, e.g in hashmaps
uses JobID, JobPartID and the partMapVector as identifier
uses JobID, JobPartID and the partMapVector as identifier
-
Constructor Summary
ConstructorsConstructorDescriptionNodeIdentifier(String jobID, String jobPartID, VJDFAttributeMap partMapVector) creates a NodeIdentifier from a given QueueEntry -
Method Summary
Modifier and TypeMethodDescriptionbooleanformalism so zhat we can use this as aINodeIdentifiablegetJobID()inthashCode()booleanreturn true if the nodeIdentifier matches this, i.e.voidsets a NodeIdentifier to a given JDF node identifier uses the AncestorPool or NodeInfo or output resource in that sequence to determine the partmapvoidsetTo(String jobID, String jobPartID, VJDFAttributeMap partMapVector) voidsets a NodeIdentifier to a given JDF nodetoString()
-
Constructor Details
-
NodeIdentifier
- Parameters:
jobID-jobPartID-partMapVector-
-
NodeIdentifier
public NodeIdentifier() -
NodeIdentifier
creates a NodeIdentifier from a given QueueEntry- Parameters:
ni- the INodeIdentifiable to set this to
-
-
Method Details
-
setTo
- Parameters:
jobID-jobPartID-partMapVector-
-
setIdentifier
sets a NodeIdentifier to a given JDF node identifier uses the AncestorPool or NodeInfo or output resource in that sequence to determine the partmap- Specified by:
setIdentifierin interfaceINodeIdentifiable- Parameters:
n-
-
setTo
sets a NodeIdentifier to a given JDF node- Parameters:
qe-
-
equals
-
matches
return true if the nodeIdentifier matches this, i.e. if all parameters match or o has matching wildcards, or o==null -
hashCode
public int hashCode() -
toString
-
getJobID
- Returns:
-
getJobPartID
- Returns:
-
getPartMapVector
- Returns:
-
getIdentifier
formalism so zhat we can use this as aINodeIdentifiable- Specified by:
getIdentifierin interfaceINodeIdentifiable- Returns:
NodeIdentifierthe nodeidentifier that matches this- See Also:
-