alma.asdm.FeedTable Class Reference

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

List of all members.


Detailed Description

The FeedTable class is an Alma table.

Generated from model's revision 1.46, branch HEAD

Attributes of Feed
Name Type Comment

Key

feedId int  

antennaId Tag  

spectralWindowId Tag  

timeInterval ArrayTimeInterval  

Value
(Mandarory)

receiverId int[] numReceptor

numReceptor int  

beamOffset double[][] numReceptor, 2

focusReference Length[][] numReceptor, 3

polarizationTypes PolarizationType[] numReceptor

polResponse Complex[][] numReceptor, numReceptor

receptorAngle Angle[] numReceptor

Value
(Optional)

beamId Tag[] numReceptor

feedNum int  

illumOffset float  

illumOffsetPa float  

xPosition Length  

yPosition Length  

zPosition Length  


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 "FeedTable" followed by the current size of the table between parenthesis.
FeedRow newRow ()
 Create a new row with default values .
FeedRow add (FeedRow x)
 Append a row to a FeedTable which has simply 1) an autoincrementable attribute (feedId) 2) a temporal attribute (timeInterval) in its key section.
FeedRow newRow (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int[] receiverId, int numReceptor, double[][] beamOffset, Length[][] focusReference, PolarizationType[] polarizationTypes, Complex[][] polResponse, Angle[] receptorAngle)
 Create a new row initialized to the specified values.
FeedRow newRow (FeedRow row)
 Create a new row using a copy constructor mechanism.
FeedRow[] get ()
 Get all rows.
FeedRow getRowByKey (int feedId, Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
 Returns a FeedRow given a key.
FeedRow[] getRowByFeedId (int feedId)
 Returns an array rows whose key element feedId is equal to the parameter feedId.
FeedRow lookup (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int[] receiverId, int numReceptor, double[][] beamOffset, Length[][] focusReference, PolarizationType[] polarizationTypes, Complex[][] polResponse, Angle[] receptorAngle)
 Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.
ASDMRow[] getRows ()
 Returns the rows of an ASDMTable as an array of ASDMRow.
FeedTableIDL toIDL ()
 Convert this table into a FeedTableIDL CORBA structure.
void fromIDL (FeedTableIDL x) throws DuplicateKey,ConversionException, UniquenessViolationException
 Populate this table from the content of a FeedTableIDL 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 Feed (FeedTable.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 Feed (FeedTable.xsd).
byte[] toMIME () throws ConversionException
 Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
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 FeedTable 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

Static Public Member Functions

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

Package Functions

String Key (Tag antennaId, Tag spectralWindowId)
 Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
boolean inKey (String s)
 FeedTable (ASDM container)
 Create a FeedTable.
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.
String toArchive (Archiver ar) throws ConversionException, ArchiverException
 Store this table into the archive.


Constructor & Destructor Documentation

alma.asdm.FeedTable.FeedTable ASDM  container  )  [package]
 

Create a FeedTable.

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

FeedRow alma.asdm.FeedTable.add FeedRow  x  ) 
 

Append a row to a FeedTable which has simply 1) an autoincrementable attribute (feedId) 2) a temporal attribute (timeInterval) in its key section.

3) other attributes in the key section (defining a so called context). If there is already a row in the table whose key section non including is equal to x's one and whose value section is equal to x's one then return this row, otherwise add x to the collection of rows.

void alma.asdm.FeedTable.fromIDL FeedTableIDL  x  )  throws DuplicateKey,ConversionException, UniquenessViolationException
 

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

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

void alma.asdm.FeedTable.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 Feed (FeedTable.xsd).

Exceptions:
ConversionException 

Implements alma.asdm.Representable.

FeedRow [] alma.asdm.FeedTable.get  ) 
 

Get all rows.

Returns:
Alls rows as an array of FeedRow

String [] alma.asdm.FeedTable.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.FeedTable.getContainer  ) 
 

Return the container to which this table belongs.

Returns:
a ASDM.

Entity alma.asdm.FeedTable.getEntity  ) 
 

Returns the table's entity.

Implements alma.asdm.Representable.

String [] alma.asdm.FeedTable.getKeyName  )  [static]
 

Return the list of field names that make up key key as an array of strings.

String alma.asdm.FeedTable.getName  )  [virtual]
 

Return the name of this table.

Implements alma.asdm.ASDMTable.

FeedRow [] alma.asdm.FeedTable.getRowByFeedId int  feedId  ) 
 

Returns an array rows whose key element feedId is equal to the parameter feedId.

Returns:
an array of FeedRow. A returned array of size 0 means that no row has been found.
Parameters:
feedId int contains the value of the autoincrementable attribute that is looked up in the table.

FeedRow alma.asdm.FeedTable.getRowByKey int  feedId,
Tag  antennaId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval
 

Returns a FeedRow given a key.

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

ASDMRow [] alma.asdm.FeedTable.getRows  )  [virtual]
 

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

Returns:
an array of ASDMRow.

Implements alma.asdm.ASDMTable.

String alma.asdm.FeedTable.Key Tag  antennaId,
Tag  spectralWindowId
[package]
 

Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.

FeedRow alma.asdm.FeedTable.lookup Tag  antennaId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int[]  receiverId,
int  numReceptor,
double  beamOffset[][],
Length  focusReference[][],
PolarizationType[]  polarizationTypes,
Complex  polResponse[][],
Angle[]  receptorAngle
 

Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.

Returns:
this row if any, 0 otherwise.
Parameters:
antennaId. 
spectralWindowId. 
timeInterval. 
receiverId. 
numReceptor. 
beamOffset. 
focusReference. 
polarizationTypes. 
polResponse. 
receptorAngle. 

FeedRow alma.asdm.FeedTable.newRow FeedRow  row  ) 
 

Create a new row using a copy constructor mechanism.

The method creates a new FeedRow 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 FeedRow with default values for its attributes.

Parameters:
row the row which is to be copied.

FeedRow alma.asdm.FeedTable.newRow Tag  antennaId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int[]  receiverId,
int  numReceptor,
double  beamOffset[][],
Length  focusReference[][],
PolarizationType[]  polarizationTypes,
Complex  polResponse[][],
Angle[]  receptorAngle
 

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. 
spectralWindowId. 
timeInterval. 
receiverId. 
numReceptor. 
beamOffset. 
focusReference. 
polarizationTypes. 
polResponse. 
receptorAngle. 

FeedRow alma.asdm.FeedTable.newRow  ) 
 

Create a new row with default values .

Returns:
a FeedRow

void alma.asdm.FeedTable.setEntity Entity  e  ) 
 

Set the table's entity.

Parameters:
e An entity.

Implements alma.asdm.Representable.

void alma.asdm.FeedTable.setFromFile String  directory  )  throws ConversionException
 

Reads and parses a file containing a representation of a FeedTable 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.FeedTable.setFromMIME byte[]  mimeMsg  )  throws ConversionException [package]
 

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

Parameters:
mimeMsg the string containing the MIME message.
Exceptions:
ConversionException 

int alma.asdm.FeedTable.size  )  [virtual]
 

Return the number of rows in the table.

Implements alma.asdm.ASDMTable.

String alma.asdm.FeedTable.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.FeedTable.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 "Feed.bin" or an XML representation (fileAsBin==false) will be saved in a file "Feed.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 

FeedTableIDL alma.asdm.FeedTable.toIDL  ) 
 

Convert this table into a FeedTableIDL CORBA structure.

Returns:
a FeedTableIDL

byte [] alma.asdm.FeedTable.toMIME  )  throws ConversionException
 

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

Returns:
a string containing the MIME message.

String alma.asdm.FeedTable.toString  ) 
 

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

Example : SpectralWindowTable(12)

Returns:
a String.

String alma.asdm.FeedTable.toXML  )  throws ConversionException
 

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

Returns:
a string containing the XML representation.

Implements alma.asdm.Representable.


The documentation for this class was generated from the following file:
Generated on Tue Nov 18 17:46:46 2008 for ASDM Java Implementation by doxygen 1.3.8