|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectau.gov.aao.drama.SdsID
au.gov.aao.drama.Arg
public class Arg
This class implements an interface to the AAO's
DramaTask,
SdsID| Nested Class Summary | |
|---|---|
static interface |
Arg.StructList
This inteface is used by the Arg.List() method to print a
single line when listing an SDS structure. |
| Field Summary | |
|---|---|
static String |
RCSID
The RCS (ACMM) ID. |
| Fields inherited from class au.gov.aao.drama.SdsID |
|---|
id, SDS_BYTE, SDS_CHAR, SDS_DOUBLE, SDS_FLOAT, SDS_I64, SDS_INT, SDS_SHORT, SDS_STRUCT, SDS_UBYTE, SDS_UI64, SDS_UINT, SDS_USHORT |
| Constructor Summary | |
|---|---|
Arg()
Create a new Arg instance item including creation of the underlying SDS structure. |
|
Arg(int item)
Create an Arg instance using a C SDS ID value. |
|
Arg(int item,
boolean free)
Create an Arg instance using a C SDS ID value, with free flag specified. |
|
Arg(int item,
boolean free,
boolean delete)
Create an Arg instance using a SDS C ID value, with free and delete flags. |
|
Arg(int item,
boolean free,
boolean del,
boolean readfree)
Create an Arg instance using a SDS C ID value, with all flags specifyable. |
|
Arg(SdsID source)
Create a copy of an existing SDS item. |
|
Arg(SdsID sdsID,
boolean outlives)
Create a new Arg instance refering to the same SDS item as an SdsID instance. |
|
Arg(SdsID source,
int index)
Create an access to a existing SDS structure by index |
|
Arg(SdsID array_id,
int[] dims)
Create an access to a cell of an existing SDS structure array. |
|
Arg(SdsID sdsID,
String name)
Create a new Arg instance refering a component of an SDS structure. |
|
Arg(SdsID parent_id,
String name,
int code)
Create a new child ARG item (of an SDS structure). |
|
Arg(SdsID parent_id,
String name,
int code,
int[] dims)
Create a new array child ARG item |
|
Arg(String name)
Create a new Arg instance item including creation of the underlying SDS structure. |
|
Arg(String name,
int code,
int[] dims)
Create a new array top-level ARG item |
|
| Method Summary | |
|---|---|
boolean |
BoolValue(String Name)
Return an boolean from a named Arg item. |
int |
IntValue(String Name)
Return an integer (up to 32 bit value) from a named Arg item. |
void |
List(Arg.StructList obj)
List an SDS structure using a line output object. |
long |
LongValue(String Name)
Return a long (up to 64 bit value) from a named Arg item. |
void |
Put(String Name,
boolean value)
Put an boolean item into an Arg structure. |
void |
Put(String Name,
char value)
Put a char (8 bit) item into an Arg structure. |
void |
Put(String Name,
double value)
Put an double length floating point item into an Arg structure. |
void |
Put(String Name,
int value)
Put an int (32 bit) item into an Arg structure. |
void |
Put(String Name,
long value)
Put an long (64 bit) item into an Arg structure. |
void |
Put(String Name,
short value)
Put a short (16 bit) item into an Arg structure. |
void |
Put(String Name,
String value)
Put an string item into an Arg structure. |
double |
RealValue(String Name)
Return an real from a named Arg item. |
String |
StringValue(String Name)
Return an string from a named Arg item. |
| Methods inherited from class au.gov.aao.drama.SdsID |
|---|
ClearDelete, ClearFree, ClearFreeIDWatch, ClearReadFree, Code, Debug, Debug, Debug, DeepCopy, Delete, Dims, EnableFreeIDWatch, Extract, FillArray, finalize, Get, Get, Get, Get, Get, Get, Get, Get, GetContructorLocation, ID, Insert, Insert, List, Name, Outlives, Put, Put, Put, Put, Put, Put, Rename, Resize, SetDebugging, SetDelete, SetFree, SetReadFree, ShallowCopyNoOutlive, ShallowCopyOutlive, StuffUp, toString, Write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RCSID
| Constructor Detail |
|---|
public Arg(int item)
item - An integer representation of an SDS/Arg ID.
public Arg(int item,
boolean free)
item - An integer representation of an SDS/Arg ID.free - Set true if SDS ID is to be freeed when the the Java object
is finalized, false if this is not to be done.
public Arg(int item,
boolean free,
boolean delete)
item - An integer representation of an SDS/Arg ID.free - Set true if SDS ID is to be freeed when the the Java object
is finalized, false if this is not to be done.delete - Set true if underlying SDS structure is to be deleted
when the the Java object is finalized, false if this is
not to be done.
public Arg(int item,
boolean free,
boolean del,
boolean readfree)
item - An integer representation of an SDS ID.free - Set true if SDS ID is to be freeed when the the Java object
is finalized, false if this is not to be done.del - Set true if underlying SDS structure is to be deleted
when the the Java object is finalized, false if this is
not to be done.readfree - Set true if SdsReadFree is to be invoked on the
SDS ID when the object is finalized - used if ID is of
an SDS structure which has been read from a file.
public Arg()
throws DramaException
DramaException - Thrown on errors in the DRAMA code.
public Arg(String name)
throws DramaException
name - The name for the SDS structure to be created.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID sdsID,
boolean outlives)
throws DramaException
sdsID - The SDS ID to copy.outlives - If true, then this item will outlive the
SdsID item and should keep hold of the underlying
SDS item. If false, the SdsID item will outlive. Note
that if you don't specify this argument at all, you
will do a deep copy of the source SDS item.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID sdsID,
String name)
throws DramaException
sdsID - The SDS ID to copy.name - The name of the item.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID parent_id,
String name,
int code)
throws DramaException
parent_id - The SDS structure to create this item within.name - The name of this new itemcode - The SDS Code for the item type.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID parent_id,
String name,
int code,
int[] dims)
throws DramaException
parent_id - The SDS structure to create this item within.name - The name of this new itemcode - The SDS Code for the item type.dims - The dimensions. Maximum of 7.
DramaException - Thrown on errors in the DRAMA code.
public Arg(String name,
int code,
int[] dims)
throws DramaException
name - The name of this new item. Would normally be
"ArgStructure" but does not have to be.code - The SDS Code for the item type.dims - The dimensions. Maximum of 7.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID array_id,
int[] dims)
throws DramaException
array_id - The SDS structure array we are accessing.dims - The dimensions of the element we are accessing
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID source)
throws DramaException
source - The structure we want to copy.
DramaException - Thrown on errors in the DRAMA code.
public Arg(SdsID source,
int index)
throws DramaException
source - The SDS structure we are accessingindex - The index to the item we want to access.
DramaException - Thrown on errors in the DRAMA code.| Method Detail |
|---|
public void Put(String Name,
char value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
short value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
int value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
long value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
double value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
boolean value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public void Put(String Name,
String value)
throws DramaException
Name - The name of the Arg item to insert in to/create.value - The value to insert.
DramaException - Thrown on errors in the DRAMA code.
public int IntValue(String Name)
throws DramaException
Name - The name of the Arg item the value of
which is to be returned.
DramaException - Thrown on errors in the DRAMA code.
public long LongValue(String Name)
throws DramaException
Name - The name of the Arg item the value of
which is to be returned.
DramaException - Thrown on errors in the DRAMA code.
public double RealValue(String Name)
throws DramaException
Name - The name of the Arg item the value of
which is to be returned.
DramaException - Thrown on errors in the DRAMA code.
public boolean BoolValue(String Name)
throws DramaException
Name - The name of the Arg item the value of
which is to be returned.
DramaException - Thrown on errors in the DRAMA code.
public String StringValue(String Name)
throws DramaException
Name - The name of the Arg item the value of
which is to be returned.
DramaException - Thrown on errors in the DRAMA code.
public void List(Arg.StructList obj)
throws DramaException
SdsID.List() method, this method
allows the specification
of an object to be invoked to print each line, allowing output
to be directed anywhere.
obj - The object who's PrintLine method is
invoked for each line of output
DramaException - Thrown on errors in the DRAMA code.
|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au.