pogo.gene
Class AttribTable
java.lang.Object
|
+--pogo.gene.AttribTable
- public class AttribTable
- extends java.lang.Object
- implements PogoDefs
This class is a just a vector containing the Attrib objects,
for the PogoClass object.
- Version:
- $Revision: 1.22 $
- Author:
- $Author: verdier $
Field Summary |
java.util.Vector |
vect
|
Fields inherited from interface pogo.gene.PogoDefs |
ALREADY_OVERRIDING,
ATTR_IMAGE,
ATTR_READ,
ATTR_READ_WITH_WRITE,
ATTR_READ_WRITE,
ATTR_SCALAR,
ATTR_SPECTRUM,
ATTR_WRITE,
AttrDataArray,
AttrRWtypeArray,
AttrTypeArray,
authorRes,
classDescRes,
cppAddAttrib,
cppAddCommands,
cppExtention,
cppFile,
cppLang,
dataCommands,
dataExtention,
dataFile,
dataStartCmd,
dataStartStates,
endGeneTag,
errDetected,
javaAddAttrib,
javaAddCommands,
javaExtention,
javaFile,
javaLang,
languageRes,
NEW_STR,
NOT_OVERRIDE,
outputFiles,
OVERRIDE,
pageTitleRes,
pogoLang,
projectTitleRes,
readAttrProto1,
readAttrProto2,
readAttrProto3,
readFile,
revisionRes,
startGeneTag,
STATE,
statesDescRes,
STATUS,
Tango_ALARM,
Tango_CLOSE,
Tango_CONST_DEV_STRING,
Tango_DISABLE,
Tango_EXTRACT,
Tango_FAULT,
Tango_INSERT,
Tango_MOVING,
Tango_OFF,
Tango_ON,
Tango_OPEN,
Tango_RUNNING,
Tango_STANDBY,
Tango_TYPE_UNKNOWN,
Tango_UNKNOWN,
Tango_WARMUP,
TangoStatesArray,
templateBlock,
templateClass,
templateClassCmd,
templateCmd,
templateExecuteCmd,
templateFile,
writeAttrProto,
writeFile |
Constructor Summary |
AttribTable()
|
AttribTable(java.lang.String filename)
Constructor for Attributes Table from source files. |
AttribTable(java.util.Vector v_in)
Constructor for Attributes Table from a java.util.Vector class. |
Method Summary |
void |
addElement(Attrib st)
Add a new Attrib object in the vector. |
java.lang.String |
buildFactory(int lang)
Return attribute factory method. |
Attrib |
elementAt(int idx)
Return a the Attrib class for an index. |
int |
size()
Return the number of elements in the vector. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
vect
public java.util.Vector vect
AttribTable
public AttribTable()
AttribTable
public AttribTable(java.util.Vector v_in)
- Constructor for Attributes Table from a java.util.Vector class.
- Parameters:
v_in
- The input commands vector to be copied.
AttribTable
public AttribTable(java.lang.String filename)
throws java.io.FileNotFoundException,
java.lang.SecurityException,
java.io.IOException,
PogoException
- Constructor for Attributes Table from source files.
- Parameters:
filename
- Pogo object class name file.- Throws:
- java.io.FileNotFoundException -
- java.lang.SecurityException -
- java.io.IOException -
- PogoException - If a synthax error occured on input file
addElement
public void addElement(Attrib st)
- Add a new Attrib object in the vector.
- Parameters:
st
- Attrib to be added.
elementAt
public Attrib elementAt(int idx)
- Return a the Attrib class for an index.
- Parameters:
idx
- Index of the state.- Returns:
- Attrib class of this index.
size
public int size()
- Return the number of elements in the vector.
- Returns:
- the number of elements in the vector.
buildFactory
public java.lang.String buildFactory(int lang)
- Return attribute factory method.
- Parameters:
lang
- Output language used.- Returns:
- String method.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object