Class GraphableVertex

java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
Direct Known Subclasses:
AggregationMember, WfVertex, WfVertexDef

public abstract class GraphableVertex extends Vertex
  • Field Details

    • mIsComposite

      protected boolean mIsComposite
  • Constructor Details

    • GraphableVertex

      public GraphableVertex()
  • Method Details

    • setProperties

      public void setProperties(CastorHashMap props)
    • getProperties

      public CastorHashMap getProperties()
    • deriveVersionNumber

      protected Integer deriveVersionNumber(Object val) throws InvalidDataException
      Throws:
      InvalidDataException
    • getKeyValuePairs

      public KeyValuePair[] getKeyValuePairs()
    • setKeyValuePairs

      public void setKeyValuePairs(KeyValuePair[] pairs)
    • getParent

      public GraphableVertex getParent()
      Returns the parent.
      Returns:
      Graphable
    • setParent

      public void setParent(GraphableVertex parent)
      Sets the parent.
      Parameters:
      parent - The parent to set
    • getChildrenGraphModel

      public GraphModel getChildrenGraphModel()
      Overrides:
      getChildrenGraphModel in class Vertex
    • getCreationContext

      public Object getCreationContext()
      Overrides:
      getCreationContext in class Vertex
    • getOutGraphables

      public Vertex[] getOutGraphables()
    • getInGraphables

      public Vertex[] getInGraphables()
    • getOutEdges

      public DirectedEdge[] getOutEdges()
    • getInEdges

      public DirectedEdge[] getInEdges()
    • getChildren

      public GraphableVertex[] getChildren()
    • getChildrenEdges

      public DirectedEdge[] getChildrenEdges()
    • getLayoutableChildren

      public GraphableVertex[] getLayoutableChildren()
    • search

      public GraphableVertex search(String ids)
      Returns:
      the Graphable searched or null if not this or children
    • getIsLayoutable

      public boolean getIsLayoutable()
      Returns the isLayoutable.
      Returns:
      boolean
    • setIsLayoutable

      public void setIsLayoutable(boolean isLayoutable)
      Sets the isLayoutable.
      Parameters:
      isLayoutable - The isLayoutable to set
    • getIsComposite

      public boolean getIsComposite()
      Returns the isComposite.
      Returns:
      boolean
    • setIsComposite

      public void setIsComposite(boolean isComposite)
      Sets the isComposite.
      Parameters:
      isComposite - The isComposite to set
    • addChild

      public void addChild(GraphableVertex graphableVertex, GraphPoint g)
    • setChildrenGraphModel

      public void setChildrenGraphModel(GraphModel childrenGraph) throws InvalidDataException
      Sets the childrenGraph.
      Parameters:
      childrenGraph - The childrenGraph to set
      Throws:
      InvalidDataException - - if the graph model wasn't valid in this context
    • getCentrePoint

      public GraphPoint getCentrePoint()
      See Also:
      • invalid reference
        org.cristalise.kernel.graph.model.Vertex#getCentrePoint()
    • getInEdgeIds

      public int[] getInEdgeIds()
      Overrides:
      getInEdgeIds in class Vertex
      See Also:
    • getOutEdgeIds

      public int[] getOutEdgeIds()
      Overrides:
      getOutEdgeIds in class Vertex
      See Also:
    • getOutlinePoints

      public GraphPoint[] getOutlinePoints()
      See Also:
      • invalid reference
        org.cristalise.kernel.graph.model.Vertex#getOutlinePoints()
    • getPath

      public String getPath()
    • getBuiltInProperty

      public Object getBuiltInProperty(BuiltInVertexProperties prop)
    • getBuiltInProperty

      public Object getBuiltInProperty(BuiltInVertexProperties prop, Object defaultVal)
    • setBuiltInProperty

      public void setBuiltInProperty(BuiltInVertexProperties prop, Object val)
    • updatePropertiesFromCollection

      public void updatePropertiesFromCollection(BuiltInVertexProperties vertexProp, CastorHashMap newProps) throws InvalidDataException
      Throws:
      InvalidDataException
    • updatePropertiesFromCollection

      public void updatePropertiesFromCollection(int slotID, CastorHashMap newProps) throws InvalidDataException
      Throws:
      InvalidDataException
    • getPairingId

      public String getPairingId()
      Retrieve the PairingID of the vertex
      Returns:
      empty string or the value of the PairingID property
    • isMyPair

      public Boolean isMyPair(GraphableVertex otherVertex)
      Checks if the vertex has a pairing id or not and if it has one compares it with the other vertex pairing id
      Parameters:
      otherVertex - the other vertex to check for pairing
      Returns:
      null if vertex has no PAIRING_ID otherwise compare the pairing ids
    • getOtherPairingID

      protected String getOtherPairingID(GraphableVertex otherVertex)
      Retrieve the PairingID of the other vertex
      Parameters:
      otherVertex - the other vertex
      Returns:
      empty string or the value of the PairingID property