public class Agent extends GamsJNI
| Modifier and Type | Field and Description |
|---|---|
ai.madara.knowledge.containers.String |
algorithm
The current device command
|
ai.madara.knowledge.containers.Map |
algorithmArgs
The current device command args
|
ai.madara.knowledge.containers.Integer |
batteryRemaining
The current device command
|
ai.madara.knowledge.containers.Integer |
bridgeId
The current device bridge id
|
ai.madara.knowledge.containers.String |
coverageType
The current device coverage type
|
ai.madara.knowledge.containers.NativeDoubleVector |
dest
The current device destination location
|
ai.madara.knowledge.containers.NativeDoubleVector |
home
The current device home location
|
ai.madara.knowledge.containers.Integer |
isMobile
Flag for if current device is mobile
|
ai.madara.knowledge.containers.NativeDoubleVector |
location
The current device current location
|
ai.madara.knowledge.containers.Double |
minAlt
Flag for if current device is mobile
|
ai.madara.knowledge.containers.String |
nextCoverageType
The current device's next coverage type
|
ai.madara.knowledge.containers.Integer |
searchAreaId
The current device search area id
|
ai.madara.knowledge.containers.NativeDoubleVector |
source
The current device home source location
|
ai.madara.knowledge.containers.Double |
temperature
The current device temperature
|
| Constructor and Description |
|---|
Agent()
Default constructor
|
Agent(Agent input)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static Agent |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Agent |
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,
String name)
Sets the name and knowledge base being referred to
|
void |
init(ai.madara.knowledge.Variables vars,
String name)
Sets the name and knowledge base being referred to
|
String |
toString()
Converts the value to a string
|
public ai.madara.knowledge.containers.Integer batteryRemaining
public ai.madara.knowledge.containers.Integer bridgeId
public ai.madara.knowledge.containers.String algorithm
public ai.madara.knowledge.containers.Map algorithmArgs
public ai.madara.knowledge.containers.String coverageType
public ai.madara.knowledge.containers.NativeDoubleVector dest
public ai.madara.knowledge.containers.NativeDoubleVector home
public ai.madara.knowledge.containers.Integer isMobile
public ai.madara.knowledge.containers.NativeDoubleVector location
public ai.madara.knowledge.containers.Double minAlt
public ai.madara.knowledge.containers.String nextCoverageType
public ai.madara.knowledge.containers.Integer searchAreaId
public ai.madara.knowledge.containers.NativeDoubleVector source
public ai.madara.knowledge.containers.Double temperature
public Agent()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic Agent(Agent input) throws GamsDeadObjectException
input - the device to copyGamsDeadObjectExceptionpublic static Agent fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static Agent 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,
String name)
throws GamsDeadObjectException
kb - the knowledge base that contains the namename - the variable nameGamsDeadObjectExceptionpublic void init(ai.madara.knowledge.Variables vars,
String name)
throws GamsDeadObjectException
vars - the variables facade that contains the namename - the variable nameGamsDeadObjectExceptionpublic String toString()
public void free()
Copyright © 2018. All rights reserved.