|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.TopologyParser
A plugin that loads nodes and links and saves the current configuration.
| Field Summary | |
protected int |
next_link_id
The ID of the next link to create. |
| Constructor Summary | |
(package private) |
TopologyParser()
|
| Method Summary | |
protected void |
finalize()
For debugging |
abstract void |
initialize(java.util.Hashtable router_table,
java.util.Hashtable host_table,
java.util.Hashtable link_table)
Initializes a new TopologyParser by initializing pointers to the Simulator router table, host table, link table and the Simulator itself. |
abstract void |
load(java.lang.String filename)
Loads the specified topology file and uses the Simulator data structures initialized in initialize(Hashtable, Hashtable, Hashtable, Hashtable) to create an appropriate network representation This is an abstract class that must be implemented by every TopologyParser. |
abstract void |
loadElement(java.lang.String line)
Load a line from a configuration file. |
abstract void |
save(java.lang.String filename)
Save the current state to the specified file. |
abstract void |
view()
View the current topology. |
abstract void |
view(boolean showIPs)
View the current topology. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int next_link_id
| Constructor Detail |
TopologyParser()
| Method Detail |
public abstract void initialize(java.util.Hashtable router_table,
java.util.Hashtable host_table,
java.util.Hashtable link_table)
public abstract void load(java.lang.String filename)
filename - the topology file to loadpublic abstract void loadElement(java.lang.String line)
public abstract void save(java.lang.String filename)
public abstract void view()
public abstract void view(boolean showIPs)
showIPs - whether or not to show the IP addresses of the nodesprotected void finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||