Class NodeIdentifier

  • All Implemented Interfaces:
    IMatches, INodeIdentifiable

    public final class NodeIdentifier
    extends java.lang.Object
    implements IMatches, INodeIdentifiable
    class to identify nodes even after parsing, e.g in hashmaps
    uses JobID, JobPartID and the partMapVector as identifier
    • Constructor Detail

      • NodeIdentifier

        public NodeIdentifier​(java.lang.String jobID,
                              java.lang.String jobPartID,
                              VJDFAttributeMap partMapVector)
        Parameters:
        jobID -
        jobPartID -
        partMapVector -
      • NodeIdentifier

        public NodeIdentifier()
      • NodeIdentifier

        public NodeIdentifier​(INodeIdentifiable ni)
        creates a NodeIdentifier from a given QueueEntry
        Parameters:
        ni - the INodeIdentifiable to set this to
    • Method Detail

      • setTo

        public void setTo​(java.lang.String jobID,
                          java.lang.String jobPartID,
                          VJDFAttributeMap partMapVector)
        Parameters:
        jobID -
        jobPartID -
        partMapVector -
      • setIdentifier

        public void setIdentifier​(NodeIdentifier n)
        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:
        setIdentifier in interface INodeIdentifiable
        Parameters:
        n -
      • setTo

        public void setTo​(INodeIdentifiable qe)
        sets a NodeIdentifier to a given JDF node
        Parameters:
        qe -
      • equals

        public boolean equals​(java.lang.Object inObject)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • matches

        public boolean matches​(java.lang.Object o)
        return true if the nodeIdentifier matches this, i.e. if all parameters match or o has matching wildcards, or o==null
        Specified by:
        matches in interface IMatches
        Parameters:
        o - the nodeidentifier that this should match
        if o is a String, check for match with jobID
        Returns:
        true, if this matches o
        See Also:
        IMatches
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getJobID

        public java.lang.String getJobID()
        Returns:
      • getJobPartID

        public java.lang.String getJobPartID()
        Returns: