Package edu.cmu.tetrad.graph
Interface Node
- All Superinterfaces:
- Comparable<Node>,- Serializable,- TetradSerializable
- All Known Subinterfaces:
- Variable
- All Known Implementing Classes:
- AbstractVariable,- ContinuousVariable,- DiscreteVariable,- GraphNode,- SessionNode
Represents an object with a name, node type, and position that can serve as a
 node in a graph.
- Author:
- Joseph Ramsey
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAttribute(String key, Object value) voidAdds a property change listener.intAlphabetical order.booleangetAttribute(String key) intintgetName()inthashCode()Creates a new node of the same type as this one with the given name.voidremoveAttribute(String key) voidsetCenter(int centerX, int centerY) Sets the (x, y) coordinates of the center of this node.voidsetCenterX(int centerX) Sets the x coordinate of the center of this node.voidsetCenterY(int centerY) Sets the y coordinate of the center of this node.voidSets the name of this node.voidsetNodeType(NodeType nodeType) Sets the node type for this node.voidsetNodeVariableType(NodeVariableType nodeVariableType) Sets the type (domain, interventional status, interventional value..) for this node variabletoString()
- 
Field Details- 
ALPHA
- 
ALPHA_NUM
- 
LAG
- 
serialVersionUIDstatic final long serialVersionUID- See Also:
 
 
- 
- 
Method Details- 
getNameString getName()- Returns:
- the name of the node.
 
- 
setNameSets the name of this node.
- 
getNodeTypeNodeType getNodeType()- Returns:
- the node type for this node.
 
- 
setNodeTypeSets the node type for this node.
- 
getNodeVariableTypeNodeVariableType getNodeVariableType()- Returns:
- the intervention type
 
- 
setNodeVariableTypeSets the type (domain, interventional status, interventional value..) for this node variable
- 
toStringString toString()
- 
getCenterXint getCenterX()- Returns:
- the x coordinate of the center of the node.
 
- 
setCenterXvoid setCenterX(int centerX) Sets the x coordinate of the center of this node.
- 
getCenterYint getCenterY()- Returns:
- the y coordinate of the center of the node.
 
- 
setCenterYvoid setCenterY(int centerY) Sets the y coordinate of the center of this node.
- 
setCentervoid setCenter(int centerX, int centerY) Sets the (x, y) coordinates of the center of this node.
- 
addPropertyChangeListenerAdds a property change listener.
- 
hashCodeint hashCode()
- 
equals
- 
likeCreates a new node of the same type as this one with the given name.
- 
compareToAlphabetical order.- Specified by:
- compareToin interface- Comparable<Node>
 
- 
getAllAttributes
- 
getAttribute
- 
removeAttribute
- 
addAttribute
 
-