All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class syd.inputdata.InputData

java.lang.Object
   |
   +----syd.inputdata.InputData

public class InputData
extends Object
A manager for the data retrieved from the command line and from the configuration file. Most fields are public, and this part of the program should be revised for style. Each object represents the data associated to a certain session.


Variable Index

 o delta_max
the worst admitted precision threshold (msecs)
 o epsilon
the "contact reached" precision threshold (msecs)
 o host
IP address of the server
 o identity
the identifier of the session
 o k
the number of attempts before diagnosing unreachability
 o logfile
the name of the log file
 o min
lower bound of the communication delay (msecs)
 o mode
LOGICAL_CLOCK, or SET_CLOCK, or ADJUST_CLOCK
 o port
the port used by the clock synch.
 o rho
upper bound of server's drift in parts per millions
 o verbose
if TRUE, be verbose
 o w
delay between successive attempts (msecs)

Constructor Index

 o InputData(int)
CONSTRUCTOR: Initializes a new object taking the values from the DefaultValues class.

Method Index

 o check_consistency()
ACCESSOR: checks that the data provided are consistent, and print a diagnostic on the standard error output.
 o common_header()
ACCESSOR: builds a String that contains all relevant input data that are common to all sessions
 o parse_command_line(String[])
MUTATOR: parses the command line and updates this InputData.
 o parse_String(String)
MUTATOR: parses a string and updates this InputData.
 o toString()
ACCESSOR: builds a String that contains all relevant in[ut data that are specific to the session this object refers to

Variables

 o identity
 public int identity
the identifier of the session

 o host
 public String host
IP address of the server

 o rho
 public double rho
upper bound of server's drift in parts per millions

 o min
 public long min
lower bound of the communication delay (msecs)

 o epsilon
 public long epsilon
the "contact reached" precision threshold (msecs)

 o delta_max
 public long delta_max
the worst admitted precision threshold (msecs)

 o w
 public long w
delay between successive attempts (msecs)

 o k
 public int k
the number of attempts before diagnosing unreachability

 o logfile
 public String logfile
the name of the log file

 o verbose
 public boolean verbose
if TRUE, be verbose

 o mode
 public int mode
LOGICAL_CLOCK, or SET_CLOCK, or ADJUST_CLOCK

 o port
 public int port
the port used by the clock synch. protocol

Constructors

 o InputData
 public InputData(int i)
CONSTRUCTOR: Initializes a new object taking the values from the DefaultValues class.

Parameters:
i - the identifier of the session
See Also:
DefaultValues

Methods

 o check_consistency
 public void check_consistency() throws DataConsistencyException
ACCESSOR: checks that the data provided are consistent, and print a diagnostic on the standard error output.

 o parse_command_line
 public void parse_command_line(String args[]) throws CommandLineException
MUTATOR: parses the command line and updates this InputData.

Parameters:
args - a String[] in the form in which command line parameters are passed to a main
 o parse_String
 public void parse_String(String par) throws ConfigurationLineException
MUTATOR: parses a string and updates this InputData.

Parameters:
args - a String in the form in which it is encoded in the configuration file.
 o toString
 public String toString()
ACCESSOR: builds a String that contains all relevant in[ut data that are specific to the session this object refers to

Returns:
a String containing a printable report
Overrides:
toString in class Object
 o common_header
 public String common_header()
ACCESSOR: builds a String that contains all relevant input data that are common to all sessions

Returns:
a String containing a printable report

All Packages  Class Hierarchy  This Package  Previous  Next  Index