|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fdda.core.impl.Project
Implementation of the project interface.
Field Summary |
Fields inherited from interface fdda.core.projects.Project |
STATE_DEMONSTRATION, STATE_MOD |
Constructor Summary | |
Project()
Constructor |
Method Summary | |
void |
addConnection(Connection connection)
Adds a connection to the project |
void |
addNode(Node node)
Sets a project-specific option. |
void |
clear()
Removes all nodes and connections. |
Iterator |
connections()
Returns an iterator over the connections in the project. |
Algorithm |
getAlgorithm()
Returns the algorithm that is currently assigned to the project. |
GraphicalSystem |
getGraphicalSystem()
Returns the graphical system of the project. |
String |
getLocation()
Returns the location where the project is stored, e.g. a file path |
String |
getName()
Returns the name of the project. |
int |
getState()
Returns the state of the project (modelling or demonstration) |
boolean |
isLocationKnown()
Returns whether a storage location for the project is known. |
Iterator |
nodes()
Returns an iterator over the nodes in the project. |
void |
removeConnection(Connection connection)
Removes a connection from the project |
void |
removeNode(Node node)
Removes a node from the project |
void |
setAlgorithm(Algorithm algorithm)
Assigns an algorithm to the project. |
void |
setChanged(boolean changed)
Sets whether the project was changed since the last save operation. |
void |
setGraphicalSystem(GraphicalSystem system)
Sets the graphical system of the project. |
void |
setLocation(String location)
Sets the location where the project is stored, e.g. a file path. |
void |
setName(String name)
Sets the name of the project |
void |
setState(int projectState)
Sets the current state of the project (MOD or DEMONSTRATION) |
boolean |
wasChanged()
Returns whether the project was changed since the last save operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Project()
Method Detail |
public void setGraphicalSystem(GraphicalSystem system)
Project
setGraphicalSystem
in interface Project
system
- the graphical systempublic GraphicalSystem getGraphicalSystem()
Project
getGraphicalSystem
in interface Project
public String getName()
Project
getName
in interface Project
public String getLocation()
Project
getLocation
in interface Project
public void setName(String name)
name
- the namepublic void setLocation(String location)
Project
setLocation
in interface Project
location
- the locationpublic boolean isLocationKnown()
Project
isLocationKnown
in interface Project
public int getState()
Project
getState
in interface Project
public void setState(int projectState)
projectState
- the statepublic void addNode(Node node)
addNode
in interface Project
node
- the nodepublic void removeNode(Node node)
Project
removeNode
in interface Project
node
- the nodepublic Iterator nodes()
Project
nodes
in interface Project
public void addConnection(Connection connection)
Project
addConnection
in interface Project
connection
- the connectionpublic void removeConnection(Connection connection)
Project
removeConnection
in interface Project
connection
- the connectionpublic Iterator connections()
Project
connections
in interface Project
public void clear()
Project
clear
in interface Project
public boolean wasChanged()
Project
wasChanged
in interface Project
public void setChanged(boolean changed)
Project
setChanged
in interface Project
changed
- whether the project was changedpublic Algorithm getAlgorithm()
Project
getAlgorithm
in interface Project
public void setAlgorithm(Algorithm algorithm)
Project
setAlgorithm
in interface Project
algorithm
- the algorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |