All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.Scan
java.lang.Object
|
+----JObserve.Linkage
|
+----JObserve.LabeledLink
|
+----JObserve.Scan
- public class Scan
- extends LabeledLink
Source scan information class.
This class contains the information for the scheduling of VLA
observations of a given source.
Everything is public to facilitate the translation from c.
Scans are linked using their LabeledLink/Linkage members.
Note, however that the head of the list is type LabeledLink and not a
Scan. Also since the lists are circular the list ends when it gets
back to the (non Scan) head. Looping over the list should be done
using the LabeledLink superclass.
This class corresponds to SrcStructure in the old C Observe.
- See Also:
- LabeledLink, Linkage
-
DurationSpecified
-
-
DwellTimeSpecified
-
-
FieldHead
- Head of Field linked list
-
StopTimeSpecified
-
-
UnspecifiedTime
- Symbolic values for time specification (SpecifiedTime)
UnspecifiedTime, StopTimeSpecified, DurationSpecified, DwellTimeSpecified
-
Scan()
- Default constructor
Virtual version
-
Scan(Scan)
- Constructor from Scan
Note: Scans cannot be "duplicated" simply using their pointers
as they contain links to other in a list.
-
CheckFields()
- Some limited checking of values
Virtual version
-
copy(Scan)
- Copy a Scan
Virtual version
-
edit(ChangeList, String)
- edit
Create and display panels that allow user editing of the contents
of a scan.
-
FillDefaults(Scan)
- Fill in defaults of members
If explicit values are not set in the Scan and are in the default Scan
then the values are copied from the default scan.
-
FinishParse(Scan)
- Any cleanup operations needed for parsing a Scan
-
GetRADEC(boolean)
- Return RA, Dec in radians
Virtual version
-
GetRADECStrings(boolean)
- Return RA, Dec strings
Virtual version
-
GetSourceName()
- Return Source Name
Virtual version
-
GetStopPos(ScanPos)
- Get final position of a scan
Virtual version
-
IsScanScheduled()
- Determine if scan is scheduled
Virtual version
-
makeEditPanels(Scan, String)
- Make Scan editing panels
Virtual version
Create Source, Scheduling, Frequency, LO, Correlator pages
-
MergeCalibratorToSource(Calibrator, Observation)
- Copy Calibrator source information to a Scan
virtual version
-
PrecessAllEpochs(int, double, double)
- Precess the epochs not explicitly set in scan structure
Virtual version.
-
ResetCoordinates(Observation)
- Update coordinates of Date in a single Scan
Virtual version.
-
ResetScanTime(int)
- Reset specified time in Scan
virtual version
-
SourceErrors(int)
- Check for scheduling errors in scan.
-
UnscheduleScan()
- Unschedule Scan
Virtual version
FieldHead
public FieldLink FieldHead
- Head of Field linked list
UnspecifiedTime
public static final int UnspecifiedTime
- Symbolic values for time specification (SpecifiedTime)
UnspecifiedTime, StopTimeSpecified, DurationSpecified, DwellTimeSpecified
StopTimeSpecified
public static final int StopTimeSpecified
DurationSpecified
public static final int DurationSpecified
DwellTimeSpecified
public static final int DwellTimeSpecified
Scan
public Scan()
- Default constructor
Virtual version
- Returns:
-
Scan
the new scan
Scan
public Scan(Scan scan)
- Constructor from Scan
Note: Scans cannot be "duplicated" simply using their pointers
as they contain links to other in a list.
Virtual version
- Parameters:
-
Scan
- the Scan to copy
- Returns:
-
Scan
the new scan
copy
public void copy(Scan out)
- Copy a Scan
Virtual version
- Parameters:
-
Scan
- the Scan to copy to
edit
public void edit(ChangeList change,
String label)
- edit
Create and display panels that allow user editing of the contents
of a scan.
- Parameters:
-
ChangeList
- work order with Scan to be edited.
-
String
- Label for the scan to be edited
makeEditPanels
public ObservePanel[] makeEditPanels(Scan scan,
String label)
- Make Scan editing panels
Virtual version
Create Source, Scheduling, Frequency, LO, Correlator pages
- Parameters:
-
Scan
- Working copy of Scan
-
String
- Label for the scan to be edited
- Returns:
-
ObservePanel[]
Array of sub panels for editing
FillDefaults
public void FillDefaults(Scan def)
- Fill in defaults of members
If explicit values are not set in the Scan and are in the default Scan
then the values are copied from the default scan.
Virtual version
- Parameters:
-
Scan
- Scan to get default values from.
CheckFields
public void CheckFields()
- Some limited checking of values
Virtual version
GetStopPos
public void GetStopPos(ScanPos out)
- Get final position of a scan
Virtual version
- Parameters:
-
ScanPos
- Structure to be filled in
UnscheduleScan
public void UnscheduleScan()
- Unschedule Scan
Virtual version
IsScanScheduled
public boolean IsScanScheduled()
- Determine if scan is scheduled
Virtual version
- Returns:
-
boolean
true if scan is scheduled
FinishParse
public void FinishParse(Scan theScan)
- Any cleanup operations needed for parsing a Scan
- Parameters:
-
Scan
- the Scan parsed
GetRADECStrings
public String[] GetRADECStrings(boolean J2000)
- Return RA, Dec strings
Virtual version
- Parameters:
-
boolean
- true if J2000, false if B1950
- Returns:
-
String[]
RA, Dec strings with no embedded blanks
GetRADEC
public double[] GetRADEC(boolean J2000)
- Return RA, Dec in radians
Virtual version
- Parameters:
-
boolean
- true if J2000, false if B1950
- Returns:
-
double[]
RA, Decin radians
GetSourceName
public String GetSourceName()
- Return Source Name
Virtual version
- Returns:
-
String
Name of the source
SourceErrors
public boolean SourceErrors(int errorType)
- Check for scheduling errors in scan.
Virtual version.
- Parameters:
-
- int
type (WARNING, ERRORS, BOTH) to check for
- Returns:
- true if one or more errors/warnings exist.
PrecessAllEpochs
public void PrecessAllEpochs(int TypeOfEpoch,
double RAValue,
double DecValue)
- Precess the epochs not explicitly set in scan structure
Virtual version.
- Parameters:
-
Scan<\code> - the Scan to be updated
-
int<\code> - Epoch type (defined in Scan)
-
double<\code> - numeric Ra as hhmmss.sss
-
double<\code> - numeric Dec as ddmmss.sss
ResetCoordinates
public void ResetCoordinates(Observation Obs)
- Update coordinates of Date in a single Scan
Virtual version.
- Parameters:
-
Observation
- the associated observation
ResetScanTime
public void ResetScanTime(int newTime)
- Reset specified time in Scan
virtual version
- Parameters:
-
int
- new Specified Time code (Scan.java)
- See Also:
- Scan
MergeCalibratorToSource
public void MergeCalibratorToSource(Calibrator theCal,
Observation Obs)
- Copy Calibrator source information to a Scan
virtual version
- Parameters:
-
Calibrator
- the calibrator to be copied
-
Observation
- the whole Observation
All Packages Class Hierarchy This Package Previous Next Index