public class MapRepresentation
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MapRepresentation.MapAttribute
A node is open, closed, or agent
|
Constructor and Description |
---|
MapRepresentation() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(java.lang.String idNode1,
java.lang.String idNode2)
Add the edge if not already existing.
|
void |
addNode(java.lang.String id,
MapRepresentation.MapAttribute mapAttribute)
Add or replace a node and its attribute
|
java.util.List<java.lang.String> |
getShortestPath(java.lang.String idFrom,
java.lang.String idTo)
Compute the shortest Path from idFrom to IdTo.
|
void |
loadSavedData()
After migration we load the serialized data and recreate the non serializable components (Gui,..)
|
void |
prepareMigration()
Before the migration we kill all non serializable components and store their data in a serializable form
|
public void addNode(java.lang.String id, MapRepresentation.MapAttribute mapAttribute)
id
- mapAttribute
- public void addEdge(java.lang.String idNode1, java.lang.String idNode2)
idNode1
- idNode2
- public java.util.List<java.lang.String> getShortestPath(java.lang.String idFrom, java.lang.String idTo)
idFrom
- id of the origin nodeidTo
- id of the destination nodepublic void prepareMigration()
public void loadSavedData()