stella.command
Class TestConfig

java.lang.Object
  extended by java.util.EventObject
      extended by util.rmi.RmiEvent
          extended by stella.MessageEvent
              extended by stella.CommandEvent
                  extended by stella.command.TestConfig
All Implemented Interfaces:
Serializable, TelescopeCommand

public class TestConfig
extends CommandEvent
implements TelescopeCommand

The command to set the ambient pressure and temperature as randomized variables around a mean value.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
private  String currentenv
          The environment condition, condensed in a single string.
private static String FAKETYPE
          The fake type.
private static Random GAUSSIAN
          The random object for generating gaussian noise.
static double MAXPRESSOFFSET
          The maximum offset in millibar in pressure.
static double MAXTEMPOFFSET
          The maximum offset in degrees in temperature.
static double MEANPRESSURE
          The mean temperature in degrees.
static double MEANTEMPERATURE
          The mean temperature in degrees.
 
Fields inherited from class stella.CommandEvent
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATOR
 
Fields inherited from class stella.MessageEvent
SEPCHAR
 
Fields inherited from class util.rmi.RmiEvent
localHost, sourceName
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TestConfig(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
TestConfig(Object src, String id, long time)
          Constructs a new focus telescope command.
 
Method Summary
 String[] getLine()
          Returns the command line of the move telescope command.
 String getType()
          Fake the type to be of ENVIRONMENT_CONFIG.
 boolean parseLine(String[] all)
          Parse the command line into a focus position.
 
Methods inherited from class stella.CommandEvent
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassName
 
Methods inherited from class stella.MessageEvent
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString
 
Methods inherited from class util.rmi.RmiEvent
getHost, getSourceName, setSourceName
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MEANTEMPERATURE

public static final double MEANTEMPERATURE
The mean temperature in degrees.

See Also:
Constant Field Values

MAXTEMPOFFSET

public static final double MAXTEMPOFFSET
The maximum offset in degrees in temperature.

See Also:
Constant Field Values

MEANPRESSURE

public static final double MEANPRESSURE
The mean temperature in degrees.

See Also:
Constant Field Values

MAXPRESSOFFSET

public static final double MAXPRESSOFFSET
The maximum offset in millibar in pressure.

See Also:
Constant Field Values

FAKETYPE

private static final String FAKETYPE
The fake type.

See Also:
Constant Field Values

GAUSSIAN

private static final Random GAUSSIAN
The random object for generating gaussian noise.


currentenv

private String currentenv
The environment condition, condensed in a single string.

Constructor Detail

TestConfig

public TestConfig(Object src)
Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.


TestConfig

public TestConfig(Object src,
                  String id,
                  long time)
Constructs a new focus telescope command. The command only gets valid either by calling the parseLine(java.lang.String[]) method or by registering an XML-Element to it.

Method Detail

getLine

public String[] getLine()
Returns the command line of the move telescope command.

Specified by:
getLine in class MessageEvent
Returns:
An array containing all command lines.

parseLine

public boolean parseLine(String[] all)
Parse the command line into a focus position. The first array element is parsed into a double.

Specified by:
parseLine in class MessageEvent
Returns:
True, if parsing was successful.

getType

public String getType()
Fake the type to be of ENVIRONMENT_CONFIG.

Overrides:
getType in class MessageEvent