|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INode
Interface representing a generic node, containing only references and state information (it does not contain visual/graphical data)
| Method Summary | |
|---|---|
void |
addChildNode(INode child)
Adds a child to this node |
void |
addParentNode(INode parent)
Add a parent to this node |
void |
appendState(String state)
Inserts a state with the specified name at the end of the list. |
List<INode> |
getAdjacentNodes()
Obtains a list of adjacent nodes. |
List<INode> |
getChildNodes()
Obtains a list of children. |
String |
getDescription()
Obtains the name of this node. |
String |
getName()
Returns the node's literal symbol. |
List<INode> |
getParentNodes()
Obtains a list of parents. |
String |
getStateAt(int index)
Returns the state of the position given by index |
int |
getStatesSize()
It returns the node's quantity of states. |
int |
getType()
Method to extract node's type. |
void |
removeChildNode(INode child)
Removes a child from this node |
void |
removeLastState()
Deletes the node's last inserted state (i.e the last element inside the list of states). |
void |
removeParentNode(INode parent)
Removes a parent from this node |
void |
removeStateAt(int index)
Used within dalgo2. |
void |
setChildNodes(List<INode> children)
Sets a new list of children. |
void |
setDescription(String text)
Changes node's description. |
void |
setName(String name)
Set the node's name, which in most cases it is the node's ID. |
void |
setParentNodes(List<INode> parents)
Sets a new list of parents. |
void |
setStateAt(String state,
int index)
Replaces a state at given position to the specified position. |
void |
setStates(List<String> states)
Sets the states. |
| Method Detail |
|---|
void setDescription(String text)
text - node's description.void setName(String name)
name - Node's name.void setChildNodes(List<INode> children)
children - List of nodes representing the children.void setParentNodes(List<INode> parents)
parents - List of nodes representing the parents.
void addChildNode(INode child)
throws InvalidParentException
child -
InvalidParentExceptionvoid removeChildNode(INode child)
child -
void addParentNode(INode parent)
throws InvalidParentException
parent -
InvalidParentExceptionvoid removeParentNode(INode parent)
parent - String getDescription()
List<INode> getAdjacentNodes()
String getName()
List<INode> getChildNodes()
List<INode> getParentNodes()
void appendState(String state)
state - Name of the state to be added.void removeLastState()
void removeStateAt(int index)
void setStateAt(String state,
int index)
state - Name of the new state.index - Position of the state being substituted. Starts with 0.int getStatesSize()
String getStateAt(int index)
index
index - position of the state to be read.
indexvoid setStates(List<String> states)
states - The states to setint getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||