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.
-
delta_max
- the worst admitted precision threshold (msecs)
-
epsilon
- the "contact reached" precision threshold (msecs)
-
host
- IP address of the server
-
identity
- the identifier of the session
-
k
- the number of attempts before diagnosing unreachability
-
logfile
- the name of the log file
-
min
- lower bound of the communication delay (msecs)
-
mode
- LOGICAL_CLOCK, or SET_CLOCK, or ADJUST_CLOCK
-
port
- the port used by the clock synch.
-
rho
- upper bound of server's drift in parts per millions
-
verbose
- if TRUE, be verbose
-
w
- delay between successive attempts (msecs)
-
InputData(int)
- CONSTRUCTOR: Initializes a new object taking the values from
the
DefaultValues
class.
-
check_consistency()
- ACCESSOR: checks that the data provided are consistent, and print
a diagnostic on the standard error output.
-
common_header()
- ACCESSOR: builds a String that contains all relevant input data
that are common to all sessions
-
parse_command_line(String[])
- MUTATOR: parses the command line and updates this InputData.
-
parse_String(String)
- MUTATOR: parses a string and updates this InputData.
-
toString()
- ACCESSOR: builds a String that contains all relevant in[ut data
that are specific to the session this object refers to
identity
public int identity
- the identifier of the session
host
public String host
- IP address of the server
rho
public double rho
- upper bound of server's drift in parts per millions
min
public long min
- lower bound of the communication delay (msecs)
epsilon
public long epsilon
- the "contact reached" precision threshold (msecs)
delta_max
public long delta_max
- the worst admitted precision threshold (msecs)
w
public long w
- delay between successive attempts (msecs)
k
public int k
- the number of attempts before diagnosing unreachability
logfile
public String logfile
- the name of the log file
verbose
public boolean verbose
- if TRUE, be verbose
mode
public int mode
- LOGICAL_CLOCK, or SET_CLOCK, or ADJUST_CLOCK
port
public int port
- the port used by the clock synch. protocol
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
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.
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
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.
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
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