stella.command
Class TotalOffsetTelescope

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.OffsetTelescope
                      extended by stella.command.TotalOffsetTelescope
All Implemented Interfaces:
Serializable, AbsoluteOffset, InitializerDepending, ParameterDepending, TelescopeCommand

public class TotalOffsetTelescope
extends OffsetTelescope
implements ParameterDepending, InitializerDepending, AbsoluteOffset

The command used during sequences to reset accumulated pointing to a predefined, fixed value. Normally this command is used with an initializer string to reset accumulated pointing offsets during dithering.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
 
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
TotalOffsetTelescope(Object src)
          Constructs a abort adapter telescope, grabbing the type from the class name and setting the command time to the current system time.
TotalOffsetTelescope(Object src, String id, long time)
          Constructs a new offset telescope command.
 
Method Summary
 void initWith(String focus)
          If initialized with a parsable double, this gets the focus offset.
 void registerParameter(Parameter offset)
          Registers an parameter set to this command.
 
Methods inherited from class stella.command.OffsetTelescope
getLine, getOffsetAltitude, getOffsetAzimuth, parseLine, setOffset
 
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, getType, 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
 

Constructor Detail

TotalOffsetTelescope

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


TotalOffsetTelescope

public TotalOffsetTelescope(Object src,
                            String id,
                            long time)
Constructs a new offset telescope command. The command only gets valid when either its OffsetTelescope.parseLine(java.lang.String[]) or the OffsetTelescope.setOffset(double, double) method are called.
To mark both offsets invalid, NaN is assigned to them.

Method Detail

initWith

public void initWith(String focus)
If initialized with a parsable double, this gets the focus offset.

Specified by:
initWith in interface InitializerDepending

registerParameter

public void registerParameter(Parameter offset)
Registers an parameter set to this command. The parameter handed over is queried for the constant offsets in azimuth and altitude.

Specified by:
registerParameter in interface ParameterDepending