public class Self extends GamsJNI
| Modifier and Type | Field and Description |
|---|---|
Agent |
agent
The agent-specific variables
|
ai.madara.knowledge.containers.Integer |
id
The agent id
|
| Constructor and Description |
|---|
Self()
Default constructor
|
Self(Self input)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static Self |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Self |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
void |
init()
Initializes the member variables
|
void |
init(ai.madara.knowledge.KnowledgeBase kb,
long id)
Initializes the id and agent containers within Self
|
void |
init(ai.madara.knowledge.Variables vars,
long id)
Initializes the id and agent containers within Self
|
String |
toString()
Converts the value to a string
|
public ai.madara.knowledge.containers.Integer id
public Agent agent
public Self()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic Self(Self input) throws GamsDeadObjectException
input - the Self variable to copyGamsDeadObjectExceptionpublic static Self fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static Self fromPointer(long cptr, boolean shouldManage) throws GamsDeadObjectException
cptr - C pointer to the objectshouldManage - if true, manage the pointerGamsDeadObjectExceptionpublic void init()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void init(ai.madara.knowledge.KnowledgeBase kb,
long id)
throws GamsDeadObjectException
kb - the knowledge base that contains the agent infoid - the agent id (0 to n - 1, inclusively)GamsDeadObjectExceptionpublic void init(ai.madara.knowledge.Variables vars,
long id)
throws GamsDeadObjectException
vars - the variables facade that contains the agent infoid - the agent id (0 to n - 1, inclusively)GamsDeadObjectExceptionpublic String toString()
public void free()
Copyright © 2018. All rights reserved.