edu.nrao.sss.model.project
Class ServiceCalibration

java.lang.Object
  extended by edu.nrao.sss.model.project.ServiceCalibration
All Implemented Interfaces:
Cloneable

public class ServiceCalibration
extends Object
implements Cloneable

A calibration of a telescope that is typically performed just before, or just after, a scheduling block is executed.

CVS Info:

$Revision: 897 $
$Date: 2007-09-20 11:39:07 -0600 (Thu, 20 Sep 2007) $
$Author: dharland $

Since:
2006-07-27
Author:
David M. Harland

Constructor Summary
ServiceCalibration()
          Creates a new instance.
 
Method Summary
 ServiceCalibration clone()
          Returns a copy of this service calibration.
 boolean equals(Object o)
          Returns true if o is equal to this service calibration.
 TimeDuration getAllowableSeparation()
          Returns the time duration during which a prior calibration of the same type would be acceptable for reuse.
 ServiceCalibrationTiming getTiming()
          Returns a value that indicates whether this service calibration should be performed before or after execution of a scheduling block.
 ScanIntent getType()
          Returns the type of calibration to be performed.
 int hashCode()
           
 void setAllowableSeparation(TimeDuration separation)
          Sets the time duration during which a prior calibration of the same type would be acceptable for reuse.
 void setTiming(ServiceCalibrationTiming newTiming)
          Sets a value that indicates whether this service calibration should be performed before or after execution of a scheduling block.
 void setType(ScanIntent calibrationType)
          Sets the type of calibration to be performed.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceCalibration

public ServiceCalibration()
Creates a new instance.

Method Detail

setType

public void setType(ScanIntent calibrationType)
Sets the type of calibration to be performed.

Parameters:
calibrationType - the type of calibration to be performed.

getType

public ScanIntent getType()
Returns the type of calibration to be performed.

Returns:
the type of calibration to be performed.

setTiming

public void setTiming(ServiceCalibrationTiming newTiming)
Sets a value that indicates whether this service calibration should be performed before or after execution of a scheduling block.

Parameters:
newTiming - the timing of calibration to be performed.

getTiming

public ServiceCalibrationTiming getTiming()
Returns a value that indicates whether this service calibration should be performed before or after execution of a scheduling block.

Returns:
the timing of calibration to be performed.

setAllowableSeparation

public void setAllowableSeparation(TimeDuration separation)
Sets the time duration during which a prior calibration of the same type would be acceptable for reuse.

Parameters:
separation - a period of time after which a prior calibration of this type will no longer be acceptable for reuse. Once this period has elapsed, a new calibration will be required.

getAllowableSeparation

public TimeDuration getAllowableSeparation()
Returns the time duration during which a prior calibration of the same type would be acceptable for reuse.

Returns:
an expiration period for a calibration of this type. Once this period has elapsed, the prior calibration is not to be used for new observations.

clone

public ServiceCalibration clone()
Returns a copy of this service calibration.

If anything goes wrong during the cloning procedure, a RuntimeException will be thrown.

Overrides:
clone in class Object

equals

public boolean equals(Object o)
Returns true if o is equal to this service calibration.

In order to be equal to this service calibration, o must be non-null and of the same class as this calibration. Equality is determined by examining the equality of corresponding attributes.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009. All Rights Reserved.