All Packages Class Hierarchy This Package Previous Next Index
Class vnet.BuildNetLayout
java.lang.Object
|
+----vnet.BuildNetLayout
- public class BuildNetLayout
- extends Object
Class to build net layouts from a formatted string
It converts a string into a serie of add and remove link and nodes, and
execute them. The operation format is (it doesn't mind the case):
-addNode A: +A
-removeNode AB : -AB
-addLink 1 between B and CD : +B1CD (or +CD1B)
-removeLink 1 : -1
-specify a delay : [delay]
Example: to create a netlayout with three nodes A, B, C, three links, a
delay for all of them of 100, and a specific delay of [200] for the 3rd link,
the string could be:
[100]+A+B+C+A1B+A2C[200]+B3C
- Version:
- 0.2, august-1997
- Author:
- LuisM Pena
-
BuildNetLayout(NetLayout)
- Basic constructor
-
BuildNetLayout(String, NetLayout)
- Extended constructor, it allows to specify an string to be processed
-
buildNet(String)
- Process the string and builds the net.
BuildNetLayout
public BuildNetLayout(NetLayout net)
- Basic constructor
- Parameters:
- net - the NetLayout to build
BuildNetLayout
public BuildNetLayout(String s,
NetLayout net) throws VNException
- Extended constructor, it allows to specify an string to be processed
- Parameters:
- net - the NetLayout to build
- Throws: VNException
- if buildNet raises this exception
- See Also:
- buildNet
buildNet
public void buildNet(String s) throws VNException
- Process the string and builds the net. If an exception is raised, the
processing finishes, but the substring already processed is not affected.
- Parameters:
- s - the string to process
- Throws: VNException
- if the string format is not valid, or any of the
operations produced raises the exception.
All Packages Class Hierarchy This Package Previous Next Index