|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.scan.ScanLoopElement edu.nrao.sss.model.project.scan.Scan edu.nrao.sss.model.project.scan.DelayScan
public class DelayScan
A scan that is used to determine the timing delays needed to synchronize the incoming signals for antennas in an array.
Version Info:
$Revision: 931 $ |
$Date: 2007-09-28 14:41:38 -0600 (Fri, 28 Sep 2007) $ |
$Author: dharland $ |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.model.project.scan.Scan |
---|
DEFAULT_NAME |
Fields inherited from interface edu.nrao.sss.util.Identifiable |
---|
UNIDENTIFIED |
Fields inherited from interface edu.nrao.sss.model.UserAccountable |
---|
NULL_USER_ID |
Method Summary | |
---|---|
void |
addDelays(double minNanosecondDelay,
double maxNanosecondDelay,
int numberOfDelays,
TimeDuration timeAtSetting)
Adds a series of delays to this scan's list. |
void |
addDelays(int numberOfPositiveDelays,
double incrementalNanosecondDelay,
TimeDuration timeAtSetting)
Adds a series of delays to this scan's list. |
DelayScan |
clone()
Returns a delay scan that is a copy of this one. |
boolean |
equals(Object o)
Returns true if o is equal to this delay scan. |
List<DelaySetting> |
getDelays()
Returns a set of delay settings. |
int |
hashCode()
Returns a hash code value for this scan loop element. |
void |
setDelays(List<DelaySetting> replacementSet)
Sets the collection of delay settings held by this scan. |
List<DelaySetting> |
sortDelays()
Sorts the internal list of delays and returns it. |
String |
toSummaryString()
Returns a short textual description of this scan loop element. |
Methods inherited from class edu.nrao.sss.model.project.scan.ScanLoopElement |
---|
appendComments, getComments, getCreatedBy, getCreatedOn, getId, getLastUpdatedBy, getLastUpdatedOn, getName, getProgramBlock, getProject, getSchedulingBlock, hasSchedulingBlock, setComments, setCreatedBy, setCreatedOn, setId, setLastUpdatedBy, setLastUpdatedOn, setName, setSchedulingBlock, toString, toXml, writeAsXmlTo |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setDelays(List<DelaySetting> replacementSet)
replacementSet
will be interpreted
as a new empty list.
This scan will hold a reference to replacementSet
(unless it is null), so any changes made to the list
after calling this method will be reflected in this object.
replacementSet
- a set of delay settings to be held by this scan.public List<DelaySetting> getDelays()
The returned set, which is guaranteed to be non-null, is the actual set held by this scan, so changes made to the set will be reflected in this object.
public List<DelaySetting> sortDelays()
The returned list is the actual list held by this scan, so changes made to the list will be reflected in this object.
public void addDelays(int numberOfPositiveDelays, double incrementalNanosecondDelay, TimeDuration timeAtSetting)
-nt,...,-2t,-t,0,+t,+2t,...,+nt.
Note that these delays are relative to the current value of the delay and are, therefore, allowed to be negative.
numberOfPositiveDelays
- the number of positive delays to be added. The total number of delays
added is equal to one plus two times this amount. An IllegalArgumentException
will be thrown if this value is negative.incrementalNanosecondDelay
- the spacing between the delays added by this method.
An IllegalArgumentException
will be
thrown if this value less than or equal to zero.timeAtSetting
- the amount of time the delay should be placed at this setting.
IllegalArgumentException
- if any of the parameters violate the rules listed above.public void addDelays(double minNanosecondDelay, double maxNanosecondDelay, int numberOfDelays, TimeDuration timeAtSetting)
numberOfDelays
.
The smallest new delay is minNanosecondDelay
, the largest is
maxNanosecondDelay
. The other delays are spread evenly between
these two endpoints.
Note that these delays are relative to the current value of the delay and are, therefore, allowed to be negative.
minNanosecondDelay
- the smallest delay. This value is often negative,maxNanosecondDelay
- the largest delay. An IllegalArgumentException
will be thrown if
this value is less than or equal to the minNanosecondDelay
.numberOfDelays
- the number of new delays to be added.
Special cases:minNanosecondDelay
will be added.minNanosecondDelay
and maxNanosecondDelay
will be added.timeAtSetting
- the amount of time the delay should be placed at this setting.
IllegalArgumentException
- if any of the parameters violate the rules listed above.public String toSummaryString()
ScanLoopElement
toSummaryString
in class Scan
public DelayScan clone()
The returned scan is, for the most part, a deep copy of this one.
However, there are a few exceptions noted in the
clone method
of this class's parent.
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in class Scan
public boolean equals(Object o)
o
is equal to this delay scan.
In order for o
to be equal to this scan, it must have
equal delay settings in the same order as those of this scan.
It must also follow the rules set forth in the
equals method
of this class's parent.
equals
in class Scan
public int hashCode()
ScanLoopElement
hashCode
in class Scan
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |