|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectLearningAlgorithm
public class LearningAlgorithm
TTT project file that represents the data and process of a launched learning algorithm CCP module
| Field Summary | |
|---|---|
private java.lang.String |
ccpID
CCP module ID for the LA |
private java.lang.String |
fullName
display name on the GUI menu for the LA |
private boolean |
isAlert
TRUE if the module has sent the alert connected message, FALSE if no message was sent |
private int |
numID
integer for identification, not necessarily equal to its index in the array |
private java.lang.String |
pathName
relative pathname to the LA's executable file |
private java.lang.Process |
process
process created from running the LA's executable file |
private static int |
tempID
static integer used to set numID |
| Constructor Summary | |
|---|---|
LearningAlgorithm(java.lang.String opponentData)
Parse the opponent data and store it correctly and start the output reader object |
|
| Method Summary | |
|---|---|
void |
exit()
Closes the executable opponent module |
java.lang.String |
getCCPID()
Return the CCP Module ID |
java.lang.String |
getFullName()
Return the opponent's display name |
int |
getNumIndex()
Gets the LA's static num index |
java.lang.String |
getPathName()
Return the relative path to the executable |
java.lang.Process |
getProcess()
Returns the process for the executable module |
boolean |
isAlert()
Returns the opponent module's alertness |
void |
launch()
Launches the executable opponent module in a new console window |
void |
setAlert(boolean flag)
Sets the LA's alertness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String ccpID
private java.lang.String fullName
private java.lang.String pathName
private java.lang.Process process
private boolean isAlert
private int numID
private static int tempID
| Constructor Detail |
|---|
public LearningAlgorithm(java.lang.String opponentData)
opponentData - - Line of data from the opponent text file| Method Detail |
|---|
public java.lang.String getCCPID()
public java.lang.String getFullName()
public java.lang.String getPathName()
public int getNumIndex()
public void launch()
public void exit()
public void setAlert(boolean flag)
flag - - TRUE if alert, FALSE if not alertpublic boolean isAlert()
public java.lang.Process getProcess()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||