fdda.core.impl
Class ModellingManagerImpl

java.lang.Object
  |
  +--fdda.core.impl.ModellingManagerImpl
All Implemented Interfaces:
ModelManager

public class ModellingManagerImpl
extends Object
implements ModelManager

Implementation of the model manager.

Author:
Jörg Rüdenauer

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

ModellingManagerImpl

public ModellingManagerImpl()
Constructor

Method Detail

getNextID

public int getNextID()
Description copied from interface: ModelManager
Returns the next ID for a node or a connection. IDs must be globally unique.

Specified by:
getNextID in interface ModelManager
Returns:
the next ID

addNode

public void addNode(Project project,
                    Node graphicalRepresentation)
Description copied from interface: ModelManager
Adds a node to a project.

Specified by:
addNode in interface ModelManager
Parameters:
project - the project
graphicalRepresentation - the graphical representation of the node

removeNode

public void removeNode(Project project,
                       Node node)
Description copied from interface: ModelManager
Removes a node from the project. The node mustn't be connected to any other nodes.

Specified by:
removeNode in interface ModelManager
Parameters:
project - the project
node - the node

addConnection

public void addConnection(Project project,
                          Node startNode,
                          Node endNode,
                          Line graphicalRepresentation,
                          boolean directed)
Description copied from interface: ModelManager
Adds a connection to a project

Specified by:
addConnection in interface ModelManager
Parameters:
project - the project
startNode - the first node
endNode - the second node
graphicalRepresentation - the graphical representation of the connection (i.e. a line)
directed - whether the connection shall be directed

removeConnection

public void removeConnection(Project project,
                             Connection connection)
Description copied from interface: ModelManager
Removes a connection from a project

Specified by:
removeConnection in interface ModelManager
Parameters:
project - the project
connection - the connection


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.