Class GraphableVertex
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
- Direct Known Subclasses:
AggregationMember,WfVertex,WfVertexDef
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(GraphableVertex graphableVertex, GraphPoint g) protected IntegergetBuiltInProperty(BuiltInVertexProperties prop, Object defaultVal) int[]Vertex[]booleanReturns the isComposite.booleanReturns the isLayoutable.protected StringgetOtherPairingID(GraphableVertex otherVertex) Retrieve the PairingID of the other vertexint[]Vertex[]Retrieve the PairingID of the vertexReturns the parent.getPath()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 idvoidsetBuiltInProperty(BuiltInVertexProperties prop, Object val) voidsetChildrenGraphModel(GraphModel childrenGraph) Sets the childrenGraph.voidsetIsComposite(boolean isComposite) Sets the isComposite.voidsetIsLayoutable(boolean isLayoutable) Sets the isLayoutable.voidsetKeyValuePairs(KeyValuePair[] pairs) voidsetParent(GraphableVertex parent) Sets the parent.voidsetProperties(CastorHashMap props) voidupdatePropertiesFromCollection(int slotID, CastorHashMap newProps) voidupdatePropertiesFromCollection(BuiltInVertexProperties vertexProp, CastorHashMap newProps) Methods inherited from class org.cristalise.kernel.graph.model.Vertex
addInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTag
-
Field Details
-
mIsComposite
protected boolean mIsComposite
-
-
Constructor Details
-
GraphableVertex
public GraphableVertex()
-
-
Method Details
-
setProperties
-
getProperties
-
deriveVersionNumber
- Throws:
InvalidDataException
-
getKeyValuePairs
-
setKeyValuePairs
-
getParent
Returns the parent.- Returns:
- Graphable
-
setParent
Sets the parent.- Parameters:
parent- The parent to set
-
getChildrenGraphModel
- Overrides:
getChildrenGraphModelin classVertex
-
getCreationContext
- Overrides:
getCreationContextin classVertex
-
getOutGraphables
-
getInGraphables
-
getOutEdges
-
getInEdges
-
getChildren
-
getChildrenEdges
-
getLayoutableChildren
-
search
- 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
-
setChildrenGraphModel
Sets the childrenGraph.- Parameters:
childrenGraph- The childrenGraph to set- Throws:
InvalidDataException- - if the graph model wasn't valid in this context
-
getCentrePoint
- See Also:
-
getInEdgeIds
public int[] getInEdgeIds()- Overrides:
getInEdgeIdsin classVertex- See Also:
-
getOutEdgeIds
public int[] getOutEdgeIds()- Overrides:
getOutEdgeIdsin classVertex- See Also:
-
getOutlinePoints
- See Also:
-
getPath
-
getBuiltInProperty
-
getBuiltInProperty
-
setBuiltInProperty
-
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
Retrieve the PairingID of the vertex- Returns:
- empty string or the value of the PairingID property
-
isMyPair
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
Retrieve the PairingID of the other vertex- Parameters:
otherVertex- the other vertex- Returns:
- empty string or the value of the PairingID property
-