public class AlgorithmStatus extends GamsJNI
| Modifier and Type | Field and Description |
|---|---|
ai.madara.knowledge.containers.Integer |
deadlocked
Flag for whether the algorithm is deadlocked or not
|
ai.madara.knowledge.containers.Integer |
failed
Flag for whether the algorithm is failed or not
|
ai.madara.knowledge.containers.Integer |
finished
Flag for whether the algorithm is finished
|
ai.madara.knowledge.containers.Integer |
ok
Flag for whether the algorithm is ok or not
|
ai.madara.knowledge.containers.Integer |
paused
Flag for whether the algorithm is paused or not
|
ai.madara.knowledge.containers.Integer |
unknown
Flag for whether the algorithm is in an unknown state or not
|
ai.madara.knowledge.containers.Integer |
waiting
Flag for whether the algorithm is in a waiting state or not
|
| Constructor and Description |
|---|
AlgorithmStatus()
Default constructor
|
AlgorithmStatus(AlgorithmStatus input)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static AlgorithmStatus |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static AlgorithmStatus |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
String |
getName()
Gets the name of the variable
|
void |
init()
Initializes the member variables
|
void |
init(ai.madara.knowledge.KnowledgeBase kb,
String name,
int id)
Sets the name and knowledge base being referred to
|
void |
init(ai.madara.knowledge.Variables vars,
String name,
int id)
Sets the name and knowledge base being referred to
|
String |
toString()
Converts the value to a string
|
public ai.madara.knowledge.containers.Integer deadlocked
public ai.madara.knowledge.containers.Integer failed
public ai.madara.knowledge.containers.Integer ok
public ai.madara.knowledge.containers.Integer paused
public ai.madara.knowledge.containers.Integer unknown
public ai.madara.knowledge.containers.Integer waiting
public ai.madara.knowledge.containers.Integer finished
public AlgorithmStatus()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic AlgorithmStatus(AlgorithmStatus input) throws GamsDeadObjectException
input - the algorithm to copyGamsDeadObjectExceptionpublic static AlgorithmStatus fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static AlgorithmStatus fromPointer(long cptr, boolean shouldManage) throws GamsDeadObjectException
cptr - C pointer to the objectshouldManage - if true, manage the pointerGamsDeadObjectExceptionpublic String getName() throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void init()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void init(ai.madara.knowledge.KnowledgeBase kb,
String name,
int id)
throws GamsDeadObjectException
kb - the knowledge base that contains the namename - the variable nameid - id of the agent to get status forGamsDeadObjectExceptionpublic void init(ai.madara.knowledge.Variables vars,
String name,
int id)
throws GamsDeadObjectException
vars - the variables facade that contains the namename - the variable nameid - id of the agent to get status forGamsDeadObjectExceptionpublic String toString()
public void free()
Copyright © 2018. All rights reserved.