Class Configuration

java.lang.Object
  extended by Configuration

 class Configuration
extends java.lang.Object

The class Configuration contains methods to perform various operations which support the setting up of a target configuration setup based on the information supplied within the observer generated configuration (.CFG) file.


Field Summary
private  java.lang.String CentreDec
           
private  java.lang.String CentreRa
           
private  java.lang.String ConfigurationFileName
           
private  double Equinox
           
private  java.lang.String FibreModuleName
           
private  java.util.List FiducialObjects
           
(package private) static int FIRST_FIDUCIAL_NUMBER
           
private  double HA
           
private  java.lang.String SiderealTime
           
private  double SkyPA
           
private  java.lang.String Target
           
private  TargetFibre[] TargetFibres
           
private  double UTDate
           
 
Constructor Summary
Configuration()
          Configuration constructor
 
Method Summary
private  void check(FibreModule theFibreModule)
          Check the validity of the configuration aginst the fibre module
private  void extractConfigurationData(FibreModule theTargetFibreModule, java.lang.String inputLine)
           
private  void extractFibreData(FibreModule theTargetFibreModule, java.lang.String inputLine)
           
private  void extractObjectData(FibreModule theTargetFibreModule, java.lang.String inputLine)
           
private  java.lang.String extractStringFromInputLine(java.io.BufferedReader input)
           
(package private)  java.lang.String getCentreDec()
           
(package private)  java.lang.String getCentreRa()
           
(package private)  double getEquinox()
           
(package private)  TargetFibre getFiducialObject(int ObjectNumber)
           
(package private)  int getNumberOfFiducialObjects()
           
(package private)  java.lang.String getSiderealTime()
           
(package private)  double getSkyPA()
           
(package private)  TargetFibre getTargetFibre(int FibreNumber)
           
(package private)  java.lang.String getTargetName()
           
(package private)  double getUTDate()
           
private  boolean isNotColliding(Fibre thisFibre, FibreModule theFibreModule)
          Check that a target fibre does not collide with any other fibres in the configuration
private  void logXYFibrePositions()
           
private  java.io.BufferedReader openFile(java.lang.String filename)
           
(package private)  void set(FibreModule theFibreModule, java.util.List configData, java.lang.String siderealTime)
          Set up a configuration based on the configuration data list
(package private)  void set(FibreModule theFibreModule, java.lang.String configurationDataFile, java.lang.String siderealTime)
          Deprecated. This method is only for test purposes
private  void setFidicialObjectPositions(FibreModule thisFibreModule)
           
private  void setSiderealTime(java.lang.String siderealTime)
           
private  void setTargetFibrePositions(FibreModule thisFibreModule)
           
 java.lang.String toString()
          Returns a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST_FIDUCIAL_NUMBER

static final int FIRST_FIDUCIAL_NUMBER
See Also:
Constant Field Values

FibreModuleName

private java.lang.String FibreModuleName

Target

private java.lang.String Target

ConfigurationFileName

private java.lang.String ConfigurationFileName

SiderealTime

private java.lang.String SiderealTime

UTDate

private double UTDate

Equinox

private double Equinox

SkyPA

private double SkyPA

HA

private double HA

CentreRa

private java.lang.String CentreRa

CentreDec

private java.lang.String CentreDec

TargetFibres

private TargetFibre[] TargetFibres

FiducialObjects

private java.util.List FiducialObjects
Constructor Detail

Configuration

Configuration()
Configuration constructor

Method Detail

set

void set(FibreModule theFibreModule,
         java.lang.String configurationDataFile,
         java.lang.String siderealTime)
Deprecated. This method is only for test purposes

Set up a configuration based on the configuration file data

Parameters:
theFibreModule - The fibre module to be configured
configurationDataFile - The name of the configuration data file
siderealTime - The sidereal time for the configuration

set

void set(FibreModule theFibreModule,
         java.util.List configData,
         java.lang.String siderealTime)
Set up a configuration based on the configuration data list

Parameters:
theFibreModule - The fibre module to be configured
configData - The configuration data list
siderealTime - The sidereal time for the configuration

toString

public java.lang.String toString()
Returns a string representation of the object

Overrides:
toString in class java.lang.Object
Returns:
The string representation of the object

extractConfigurationData

private void extractConfigurationData(FibreModule theTargetFibreModule,
                                      java.lang.String inputLine)

extractFibreData

private void extractFibreData(FibreModule theTargetFibreModule,
                              java.lang.String inputLine)

extractObjectData

private void extractObjectData(FibreModule theTargetFibreModule,
                               java.lang.String inputLine)

setTargetFibrePositions

private void setTargetFibrePositions(FibreModule thisFibreModule)

setFidicialObjectPositions

private void setFidicialObjectPositions(FibreModule thisFibreModule)

setSiderealTime

private void setSiderealTime(java.lang.String siderealTime)

getSiderealTime

java.lang.String getSiderealTime()

getCentreRa

java.lang.String getCentreRa()

getCentreDec

java.lang.String getCentreDec()

getUTDate

double getUTDate()

getEquinox

double getEquinox()

getSkyPA

double getSkyPA()

getTargetFibre

TargetFibre getTargetFibre(int FibreNumber)

getNumberOfFiducialObjects

int getNumberOfFiducialObjects()

getFiducialObject

TargetFibre getFiducialObject(int ObjectNumber)

getTargetName

java.lang.String getTargetName()

check

private void check(FibreModule theFibreModule)
Check the validity of the configuration aginst the fibre module

Parameters:
theFibreModule - The fibre module

isNotColliding

private boolean isNotColliding(Fibre thisFibre,
                               FibreModule theFibreModule)
Check that a target fibre does not collide with any other fibres in the configuration

Parameters:
thisFibre - The fibre to be checked
theFibreModule - The fibre module
Returns:
Result of fibre collision check

openFile

private java.io.BufferedReader openFile(java.lang.String filename)

extractStringFromInputLine

private java.lang.String extractStringFromInputLine(java.io.BufferedReader input)

logXYFibrePositions

private void logXYFibrePositions()