Example #1
0
        ///
        ///	 <summary> * gets the NodeIdetifier that matches this
        ///	 *
        ///	 * @return </summary>
        ///
        public virtual NodeIdentifier getIdentifier()
        {
            NodeIdentifier ni = new NodeIdentifier();

            ni.setTo(getJobID(), getJobPartID(), getPartMapVector());
            return(ni);
        }
Example #2
0
 ///
 ///	 <summary> * gets the NodeIdetifier that matches this
 ///	 *
 ///	 * @return </summary>
 ///
 public virtual void setIdentifier(NodeIdentifier ni)
 {
     if (ni == null)
     {
         return;
     }
     setPartMapVector(ni.getPartMapVector());
     setJobID(ni.getJobID());
     setJobPartID(ni.getJobPartID());
 }
Example #3
0
        ///
        ///	 <summary> * return true if this qe matches the input node identifier
        ///	 *  </summary>
        ///	 * <param name="ni">
        ///	 * @return </param>
        ///
        public virtual bool matchesNodeIdentifier(NodeIdentifier ni)
        {
            if (ni == null)
            {
                return(false);
            }
            NodeIdentifier niThis = getIdentifier();

            return(niThis.matches(ni));
        }
Example #4
0
        ///
        ///	 * <seealso cref= org.cip4.jdflib.ifaces.INodeIdentifiable#setIdentifier(org.cip4.jdflib.node.JDFNode.NodeIdentifier) </seealso>
        ///	 * <param name="ni"> </param>
        ///
        public virtual void setIdentifier(NodeIdentifier ni)
        {
            NodeIdentifier niLocal = ni;

            if (niLocal == null)
            {
                niLocal = new NodeIdentifier();
            }

            setJobID(niLocal.getJobID());
            setJobPartID(niLocal.getJobPartID());
            setPartMapVector(niLocal.getPartMapVector());
        }
Example #5
0
        ///
        ///	 * <param name="identifier"> </param>
        ///
        public virtual void setNode(NodeIdentifier identifier)
        {
            NodeIdentifier identifierLocal = identifier;

            if (identifierLocal == null)
            {
                identifierLocal = new NodeIdentifier((JDFNode)null);
            }

            setJobID(identifierLocal.getJobID());
            setJobPartID(identifierLocal.getJobPartID());
            setPartMapVector(identifierLocal.getPartMapVector());
        }
Example #6
0
        ///
        ///	 <summary> * apply all values of a JDF Node to this </summary>
        ///	 * <param name="node"> the node to apply </param>
        ///
        public virtual void applyNode(JDFNode node)
        {
            NodeIdentifier ni = node == null ? new NodeIdentifier() : node.getIdentifier();

            setIdentifier(ni);
            if (node != null)
            {
                JDFNode.EnumActivation activation = node.getActivation(true);
                if (activation != null)
                {
                    setActivation(EnumActivation.getEnum(activation.getName()));
                }
                VJDFAttributeMap vMap = ni.getPartMapVector();
                setStatus(node.getVectorPartStatus(vMap));
                setStatusDetails(node.getVectorPartStatusDetails(vMap));
            }
        }