alma.asdm.PointingTable Class Reference

Inherits alma.asdm.ASDMTable, and alma.asdm.Representable.

List of all members.


Detailed Description

The PointingTable class is an Alma table.

Attributes of Pointing
Name Type Comment

Key

antennaId Tag  

timeInterval ArrayTimeInterval  

Value
(Mandarory)

pointingModelId int  

numPoly int  

timeOrigin ArrayTime  

pointingDirection Angle[][] numPoly+1, 2

target Angle[][] numPoly+1, 2

offset Angle[][] numPoly+1, 2

encoder Angle[] 2

pointingTracking boolean  

Value
(Optional)

name String  

sourceOffset Angle[][] numPoly+1, 2

phaseTracking boolean  

overTheTop boolean  


Public Member Functions

String[] getAttributesNames ()
 Returns the names of the attributes of the rows stored in that table.
ASDM getContainer ()
 Return the container to which this table belongs.
int size ()
 Return the number of rows in the table.
String getName ()
 Return the name of this table.
String toString ()
 Returns "PointingTable" followed by the current size of the table between parenthesis.
PointingRow newRow ()
 Create a new row with default values .
PointingRow add (PointingRow x) throws DuplicateKey
 Add a row.
PointingRow newRow (Tag antennaId, ArrayTimeInterval timeInterval, int pointingModelId, int numPoly, ArrayTime timeOrigin, Angle[][] pointingDirection, Angle[][] target, Angle[][] offset, Angle[] encoder, boolean pointingTracking)
 Create a new row initialized to the specified values.
PointingRow newRow (PointingRow row)
 Create a new row using a copy constructor mechanism.
PointingRow[] get ()
 Get all rows.
PointingRow[] getByContext (Tag antennaId)
 Returns all the rows sorted by ascending startTime for a given context.
PointingRow getRowByKey (Tag antennaId, ArrayTimeInterval timeInterval)
 Returns a PointingRow given a key.
ASDMRow[] getRows ()
 Returns the rows of an ASDMTable as an array of ASDMRow.
PointingTableIDL toIDL ()
 Convert this table into a PointingTableIDL CORBA structure.
void fromIDL (PointingTableIDL x) throws DuplicateKey, ConversionException
 Populate this table from the content of a PointingTableIDL Corba structure.
byte[] toFITS () throws ConversionException
 To be implemented.
void fromFITS (byte[] fits) throws ConversionException
 To be implemented.
String toVOTable () throws ConversionException
 To be implemented.
void fromVOTable (String vo) throws ConversionException
 To be implemented.
String toXML () throws ConversionException
 Translate this table to an XML representation conform to the schema defined for Pointing (PointingTable.xsd).
void fromXML (String xmlDoc) throws ConversionException
 Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a Pointing (PointingTable.xsd).
byte[] toMIME () throws ConversionException
 Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
void setFromMIME (byte[] mimeMsg) throws ConversionException
 Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.
void toFile (String directory) throws ConversionException
 Stores a representation (binary or XML) of this table into a file.
void setFromFile (String directory) throws ConversionException
 Reads and parses a file containing a representation of a PointingTable as those produced by the toFile method.
Entity getEntity ()
 Returns the table's entity.
void setEntity (Entity e)
 Set the table's entity.
void fromArchive (Archiver ar, String UID) throws ConversionException, ArchiverException
 Retrieve this table from the archive.

Static Public Member Functions

static String[] getKeyName ()
 Return the list of field names that make up key key as an array of strings.

Package Functions

String Key (Tag antennaId)
 Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
boolean inKey (String s)
 PointingTable (ASDM container)
 Create a PointingTable.
String toArchive (Archiver ar) throws ConversionException, ArchiverException
 Store this table into the archive.


Constructor & Destructor Documentation

alma.asdm.PointingTable.PointingTable ( ASDM  container  )  [package]

Create a PointingTable.

This constructor has package access because only the container can create tables. All tables must know the container to which they belong.

Parameters:
container The container to which this table belongs.


Member Function Documentation

String [] alma.asdm.PointingTable.getAttributesNames (  )  [virtual]

Returns the names of the attributes of the rows stored in that table.

Returns:
the attributes names as an array of String.

Implements alma.asdm.ASDMTable.

ASDM alma.asdm.PointingTable.getContainer (  ) 

Return the container to which this table belongs.

Returns:
a ASDM.

String alma.asdm.PointingTable.toString (  ) 

Returns "PointingTable" followed by the current size of the table between parenthesis.

Example : SpectralWindowTable(12)

Returns:
a String.

PointingRow alma.asdm.PointingTable.newRow (  ) 

Create a new row with default values .

Returns:
a PointingRow

PointingRow alma.asdm.PointingTable.add ( PointingRow  x  )  throws DuplicateKey

Add a row.

Parameters:
x a pointer to the PointingRow to be added.
Returns:
a PointingRow. If the table contains a PointingRow whose attributes (key and mandatory values) are equal to x ones then returns a pointer on that PointingRow, otherwise returns x.
Exceptions:
DuplicateKey { thrown when the table contains a PointingRow with a key equal to the x one but having and a value section different from x one }
Note:
The row is inserted in the table in such a way that all the rows having the same value of ( antennaId ) are stored by ascending time.
See also:
method getByContext.

PointingRow alma.asdm.PointingTable.newRow ( Tag  antennaId,
ArrayTimeInterval  timeInterval,
int  pointingModelId,
int  numPoly,
ArrayTime  timeOrigin,
Angle  pointingDirection[][],
Angle  target[][],
Angle  offset[][],
Angle[]  encoder,
boolean  pointingTracking 
)

Create a new row initialized to the specified values.

(the autoincrementable attribute if any is not in the parameter list)

Returns:
the new initialized row.
Parameters:
antennaId. 
timeInterval. 
pointingModelId. 
numPoly. 
timeOrigin. 
pointingDirection. 
target. 
offset. 
encoder. 
pointingTracking. 

PointingRow alma.asdm.PointingTable.newRow ( PointingRow  row  ) 

Create a new row using a copy constructor mechanism.

The method creates a new PointingRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new PointingRow with default values for its attributes.

Parameters:
row the row which is to be copied.

PointingRow [] alma.asdm.PointingTable.get (  ) 

Get all rows.

Returns:
Alls rows as an array of PointingRow

PointingRow [] alma.asdm.PointingTable.getByContext ( Tag  antennaId  ) 

Returns all the rows sorted by ascending startTime for a given context.

The context is defined by a value of ( antennaId ).

Returns:
an array of PointingRow. A null returned value means that the table contains no PointingRow for the given ( antennaId ).

PointingRow alma.asdm.PointingTable.getRowByKey ( Tag  antennaId,
ArrayTimeInterval  timeInterval 
)

Returns a PointingRow given a key.

Returns:
a pointer to the row having the key whose values are passed as parameters, or 0 if no row exists for that key.

ASDMRow [] alma.asdm.PointingTable.getRows (  )  [virtual]

Returns the rows of an ASDMTable as an array of ASDMRow.

Returns:
an array of ASDMRow.

Implements alma.asdm.ASDMTable.

PointingTableIDL alma.asdm.PointingTable.toIDL (  ) 

Convert this table into a PointingTableIDL CORBA structure.

Returns:
a PointingTableIDL

void alma.asdm.PointingTable.fromIDL ( PointingTableIDL  x  )  throws DuplicateKey, ConversionException

Populate this table from the content of a PointingTableIDL Corba structure.

Exceptions:
DuplicateKey Thrown if the method tries to add a row having a key that is already in the table.
ConversionException 

String alma.asdm.PointingTable.toXML (  )  throws ConversionException

Translate this table to an XML representation conform to the schema defined for Pointing (PointingTable.xsd).

Returns:
a string containing the XML representation.

Implements alma.asdm.Representable.

void alma.asdm.PointingTable.fromXML ( String  xmlDoc  )  throws ConversionException

Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a Pointing (PointingTable.xsd).

Exceptions:
ConversionException 

Implements alma.asdm.Representable.

byte [] alma.asdm.PointingTable.toMIME (  )  throws ConversionException

Serialize this into a stream of bytes and encapsulates that stream into a MIME message.

Returns:
an array of bytes containing the MIME message.

void alma.asdm.PointingTable.setFromMIME ( byte[]  mimeMsg  )  throws ConversionException

Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.

Parameters:
mimeMsg the array of bytes containing the MIME message.
Exceptions:
ConversionException 

void alma.asdm.PointingTable.toFile ( String  directory  )  throws ConversionException

Stores a representation (binary or XML) of this table into a file.

Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "Pointing.bin" or an XML representation (fileAsBin==false) will be saved in a file "Pointing.xml". The file is always written in a directory whose name is passed as a parameter.

Parameters:
directory The name of directory where the file containing the table's representation will be saved.
Exceptions:
ConversionException 

void alma.asdm.PointingTable.setFromFile ( String  directory  )  throws ConversionException

Reads and parses a file containing a representation of a PointingTable as those produced by the toFile method.

This table is populated with the result of the parsing.

Parameters:
directory The name of the directory containing the file te be read and parsed.
Exceptions:
ConversionException If any error occurs while reading the files in the directory or parsing them.

void alma.asdm.PointingTable.setEntity ( Entity  e  ) 

Set the table's entity.

Parameters:
e An entity.

Implements alma.asdm.Representable.

String alma.asdm.PointingTable.toArchive ( Archiver  ar  )  throws ConversionException, ArchiverException [package]

Store this table into the archive.

Parameters:
ar the archiver in charge of the archiving.
Returns:
the UID assigned to the archived table.

void alma.asdm.PointingTable.fromArchive ( Archiver  ar,
String  UID 
) throws ConversionException, ArchiverException

Retrieve this table from the archive.

Parameters:
ar the archiver in charge of the archiving.


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:47:24 2007 for ASDM Java Implementation by  doxygen 1.5.1