|
POGO Java Program |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pogo.gene.CmdTable
This class is a just a vector containing the Cmd objects, for the PogoClass object.
Field Summary | |
java.util.Vector |
vect
The vector containing the Cmd objects, or the PogoClass object. |
Constructor Summary | |
CmdTable(java.lang.String filename)
Constructor for Command Table from an input file (.pogo, .cpp or .java). |
|
CmdTable(java.util.Vector v_in)
Constructor for Command Table from a java.util.Vector class. |
Method Summary | |
void |
addElement(Cmd cmd)
Add a new Cmd object to the Vector. |
java.lang.String |
buildCommandFactoryMethod(int lang)
Build or Modify the command factory method. |
java.lang.String |
checkArgsType()
Check for each command if argin and argout have a correct type. |
Cmd |
cmdIdx(int idx)
Return a the command class for an index. |
private void |
createVirtualStatusCmd()
|
void |
getDescriptions(java.lang.String descFile,
java.lang.String serverClass,
int lang)
Initilize commands desciption from file |
int |
size()
Return the number of elements in the vector. |
java.lang.String |
toString()
Build a String including some parameters for all commands. |
java.lang.String |
toString(int idx)
Build a String including some parameters for the command at the index. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.util.Vector vect
Constructor Detail |
public CmdTable(java.util.Vector v_in)
v_in
- The input commands vector to be copied.public CmdTable(java.lang.String filename) throws java.io.FileNotFoundException, java.lang.SecurityException, java.io.IOException, PogoException
filename
- Name of the file to read commands list and parameters.Method Detail |
private void createVirtualStatusCmd()
public void addElement(Cmd cmd)
cmd
- New Cmd object to be added.public java.lang.String buildCommandFactoryMethod(int lang) throws PogoException
lang
- Language to be generated.public void getDescriptions(java.lang.String descFile, java.lang.String serverClass, int lang) throws java.io.FileNotFoundException, java.lang.SecurityException, java.io.IOException, PogoException
descFile
- Input file name.serverClass
- server class name to check good exec method name..lang
- Input language.public java.lang.String checkArgsType()
public Cmd cmdIdx(int idx)
idx
- index of the command.public int size()
public java.lang.String toString(int idx) throws PogoException
idx
- The command's index.public java.lang.String toString()
|
POGO Java Program |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |