stella.command
Class RandomOffsetTelescope
java.lang.Object
java.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.OffsetTelescope
stella.command.EncoderOffsetTelescope
stella.command.InitialOffsetTelescope
stella.command.RandomOffsetTelescope
- All Implemented Interfaces:
- Serializable, InitializerDepending, RelativeOffset, ParameterDepending, TelescopeCommand
public class RandomOffsetTelescope
- extends InitialOffsetTelescope
The command used during random search. The specified offsets are the maximum
possible, the true is a random selection between -/+ the maximum.
- See Also:
- Serialized Form
|
Method Summary |
void |
initWith(String focus)
If initialized with a parsable double, this gets the focus offset. |
void |
setOffset(double az0,
double alt0,
double azmax,
double altmax)
Randomizes the offset between +/- the stated values. |
| 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 |
RandomOffsetTelescope
public RandomOffsetTelescope(Object src)
- Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
RandomOffsetTelescope
public RandomOffsetTelescope(Object src,
String id,
long time)
- Constructs a new offset telescope command. The command only gets valid
when either its
EncoderOffsetTelescope.parseLine(java.lang.String[]) or the setOffset(double, double, double, double)
method are called.
To mark both offsets invalid, NaN is assigned to them.
initWith
public void initWith(String focus)
- If initialized with a parsable double, this gets the focus offset.
- Specified by:
initWith in interface InitializerDepending- Overrides:
initWith in class InitialOffsetTelescope
setOffset
public void setOffset(double az0,
double alt0,
double azmax,
double altmax)
- Randomizes the offset between +/- the stated values.