|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.core.impl.ModellingManagerImpl
Implementation of the model manager.
Constructor Summary | |
ModellingManagerImpl()
Constructor |
Method Summary | |
void |
addConnection(Project project,
Node startNode,
Node endNode,
Line graphicalRepresentation,
boolean directed)
Adds a connection to a project |
void |
addNode(Project project,
Node graphicalRepresentation)
Adds a node to a project. |
int |
getNextID()
Returns the next ID for a node or a connection. |
void |
removeConnection(Project project,
Connection connection)
Removes a connection from a project |
void |
removeNode(Project project,
Node node)
Removes a node from the project. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModellingManagerImpl()
Method Detail |
public int getNextID()
ModelManager
getNextID
in interface ModelManager
public void addNode(Project project, Node graphicalRepresentation)
ModelManager
addNode
in interface ModelManager
project
- the projectgraphicalRepresentation
- the graphical representation of the nodepublic void removeNode(Project project, Node node)
ModelManager
removeNode
in interface ModelManager
project
- the projectnode
- the nodepublic void addConnection(Project project, Node startNode, Node endNode, Line graphicalRepresentation, boolean directed)
ModelManager
addConnection
in interface ModelManager
project
- the projectstartNode
- the first nodeendNode
- the second nodegraphicalRepresentation
- the graphical representation of the
connection (i.e. a line)directed
- whether the connection shall be directedpublic void removeConnection(Project project, Connection connection)
ModelManager
removeConnection
in interface ModelManager
project
- the projectconnection
- the connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |