|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.visualtopo.facade.GUIManager
public class GUIManager
This class is used to manage most interractions between TOTEM and the GUI.
Creation date: 10-Jan-2005
Field Summary | |
---|---|
static int |
TOPO_NOT_LOADED
|
Method Summary | |
---|---|
void |
addDemandMatrix(java.io.File mFile)
Load DemandMatrix from file and add it to the TrafficMatrixManager TrafficMatrix file must match one of the loaded domain. |
void |
closeDomain(int ASID)
Remove the Domain from InterDomainManager and display another one (if exists). |
Domain |
getCurrentDomain()
Returns the Domain currently loaded in the GUI |
static GUIManager |
getInstance()
Use this method to get an instance of GUIManager since the constructor is private |
java.util.List<java.lang.Integer> |
getManagedMatrices()
Return a list of matrices TMID. |
java.lang.String |
getName()
This methods return the current topology name (the domain URI) |
java.lang.String[] |
getNodesList()
A method that returns all topology nodes in a vector |
int |
loadTopology(java.io.File tFile)
|
void |
openDomain(Domain domain)
Load given domain in the InterDomainManager and Display it in the GUI If domain is null, do nothing. |
void |
openDomainReplace(Domain domain)
Load given domain in the InterDomainManager and Display it in the GUI. |
void |
removeTrafficMatrices()
Remove all matrices currently managed (all matrices for the domain displayed) |
void |
removeTrafficMatrix(int tmid)
Remove Traffic Matrix with the specified tmid from both Gui and TrafficMatrixManager |
void |
saveTopo()
Called by the actionlistener when the save Button in the menubar is pressed, this method call a chooser and then save the topology in the selected file. |
void |
saveTrafficMatrix(int tmid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOPO_NOT_LOADED
Method Detail |
---|
public static GUIManager getInstance()
public Domain getCurrentDomain()
public int loadTopology(java.io.File tFile) throws InvalidDomainException, DomainAlreadyExistException
InvalidDomainException
DomainAlreadyExistException
public void openDomain(Domain domain) throws DomainAlreadyExistException
domain
is null, do nothing.
domain
-
DomainAlreadyExistException
- if a domain with same ASID is already in the InterDomainManagerpublic void openDomainReplace(Domain domain)
domain
is null, do nothing.
domain
- public void closeDomain(int ASID)
ASID
- public void addDemandMatrix(java.io.File mFile)
mFile
- the File from which the matrix will be loadedpublic void removeTrafficMatrices()
public void removeTrafficMatrix(int tmid)
tmid
- the matrix to be removedpublic void saveTrafficMatrix(int tmid)
public void saveTopo()
public java.lang.String getName()
public java.lang.String[] getNodesList()
public java.util.List<java.lang.Integer> getManagedMatrices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |