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

Variable Index

 o DurationSpecified
 o DwellTimeSpecified
 o FieldHead
Head of Field linked list
 o StopTimeSpecified
 o UnspecifiedTime
Symbolic values for time specification (SpecifiedTime) UnspecifiedTime, StopTimeSpecified, DurationSpecified, DwellTimeSpecified

Constructor Index

 o Scan()
Default constructor Virtual version
 o Scan(Scan)
Constructor from Scan Note: Scans cannot be "duplicated" simply using their pointers as they contain links to other in a list.

Method Index

 o CheckFields()
Some limited checking of values Virtual version
 o copy(Scan)
Copy a Scan Virtual version
 o edit(ChangeList, String)
edit Create and display panels that allow user editing of the contents of a scan.
 o 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.
 o FinishParse(Scan)
Any cleanup operations needed for parsing a Scan
 o GetRADEC(boolean)
Return RA, Dec in radians Virtual version
 o GetRADECStrings(boolean)
Return RA, Dec strings Virtual version
 o GetSourceName()
Return Source Name Virtual version
 o GetStopPos(ScanPos)
Get final position of a scan Virtual version
 o IsScanScheduled()
Determine if scan is scheduled Virtual version
 o makeEditPanels(Scan, String)
Make Scan editing panels Virtual version Create Source, Scheduling, Frequency, LO, Correlator pages
 o MergeCalibratorToSource(Calibrator, Observation)
Copy Calibrator source information to a Scan virtual version
 o PrecessAllEpochs(int, double, double)
Precess the epochs not explicitly set in scan structure Virtual version.
 o ResetCoordinates(Observation)
Update coordinates of Date in a single Scan Virtual version.
 o ResetScanTime(int)
Reset specified time in Scan virtual version
 o SourceErrors(int)
Check for scheduling errors in scan.
 o UnscheduleScan()
Unschedule Scan Virtual version

Variables

 o FieldHead
 public FieldLink FieldHead
Head of Field linked list

 o UnspecifiedTime
 public static final int UnspecifiedTime
Symbolic values for time specification (SpecifiedTime) UnspecifiedTime, StopTimeSpecified, DurationSpecified, DwellTimeSpecified

 o StopTimeSpecified
 public static final int StopTimeSpecified
 o DurationSpecified
 public static final int DurationSpecified
 o DwellTimeSpecified
 public static final int DwellTimeSpecified

Constructors

 o Scan
 public Scan()
Default constructor Virtual version

Returns:
Scan the new scan
 o 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

Methods

 o copy
 public void copy(Scan out)
Copy a Scan Virtual version

Parameters:
Scan - the Scan to copy to
 o 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
 o 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
 o 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.
 o CheckFields
 public void CheckFields()
Some limited checking of values Virtual version

 o GetStopPos
 public void GetStopPos(ScanPos out)
Get final position of a scan Virtual version

Parameters:
ScanPos - Structure to be filled in
 o UnscheduleScan
 public void UnscheduleScan()
Unschedule Scan Virtual version

 o IsScanScheduled
 public boolean IsScanScheduled()
Determine if scan is scheduled Virtual version

Returns:
boolean true if scan is scheduled
 o FinishParse
 public void FinishParse(Scan theScan)
Any cleanup operations needed for parsing a Scan

Parameters:
Scan - the Scan parsed
 o 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
 o 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
 o GetSourceName
 public String GetSourceName()
Return Source Name Virtual version

Returns:
String Name of the source
 o 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.
 o 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
 o ResetCoordinates
 public void ResetCoordinates(Observation Obs)
Update coordinates of Date in a single Scan Virtual version.

Parameters:
Observation - the associated observation
 o ResetScanTime
 public void ResetScanTime(int newTime)
Reset specified time in Scan virtual version

Parameters:
int - new Specified Time code (Scan.java)
See Also:
Scan
 o 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