All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.remote.prg.GraphMain

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----vnet.remote.prg.GraphMain

public class GraphMain
extends Frame
This class allows the creation of a virtualNe in a graphical way.

Version:
0.2, august-1997
Author:
LuisM Pena

Constructor Index

 o GraphMain(boolean, String, long, Dimension, Dimension, Dimension, long, int, String, String, boolean, boolean, boolean, boolean, String)

Method Index

 o main(String[])
The options for the initialization are:

Arguments: [options] [VirtualNetName]

Options:

-start : initializa directly a VirtualNet

-delay=n : timems of delay in each node and link

-bsize=w,h: size of the BindServers window

-csize=w,h : size of the Console Window

-gsize=w,h : size of the Graph Windows

-gupdate=n : timems to update the graphs

-gremain=m : number of times needed to change the state

if start is present, next options are also available:

-init=cad : initializacion string.

Constructors

 o GraphMain
 public GraphMain(boolean bStart,
                  String serverName,
                  long netDelay,
                  Dimension dConsole,
                  Dimension dBind,
                  Dimension dGraph,
                  long graphUpdate,
                  int graphRemain,
                  String init,
                  String initFile,
                  boolean initConsole,
                  boolean initBinds,
                  boolean initCircleGraph,
                  boolean initNetGraph,
                  String szError)
Parameters:
bStart - true if the VirtualNet has to be created inmediately
serverName - the name for the VirtualNet
netDelay - default delay for the VirtualNet
dConsole - size for the Console Windows
dBind - size for the List Binded Servers Windows
dGraph - size for the graph Windows
graphUpdate - time (ms) to do the updating on the graph Windows
graphRemain - in the graph Windows, number of times the state remain unchanged
init - initialization chain
initFile - file initialization chain
initConsole - true to lunch inmediately a console window
initBinds - true to lunch inmediately a List Binded Servers window
initCircleGraph - true to lunch inmediately a circle graph window
initNetGraph - true to lunch inmediately a net graph window
szError - non null if it has to be shown an error string

Methods

 o main
 public static void main(String args[])
The options for the initialization are:

Arguments: [options] [VirtualNetName]

Options:

-start : initializa directly a VirtualNet

-delay=n : timems of delay in each node and link

-bsize=w,h: size of the BindServers window

-csize=w,h : size of the Console Window

-gsize=w,h : size of the Graph Windows

-gupdate=n : timems to update the graphs

-gremain=m : number of times needed to change the state

if start is present, next options are also available:

-init=cad : initializacion string.

-initfile=name : initialization file. By default, is vnetName.net -gconsole : display all the VirtualNet events in a window

-binds : display the servers binded to the VirtualNet

-graphcircle : display the VirtualNet as a round graph

-graphnet : display the VirtualNet as a net graph


All Packages  Class Hierarchy  This Package  Previous  Next  Index