public class Swarm extends GamsJNI
| Modifier and Type | Field and Description |
|---|---|
ai.madara.knowledge.containers.Vector |
args
The current swarm command args
|
ai.madara.knowledge.containers.String |
command
The current swarm command
|
ai.madara.knowledge.containers.Double |
minAlt
The current swarm minimum altitude
|
ai.madara.knowledge.containers.Integer |
size
The current swarm size
|
| Constructor and Description |
|---|
Swarm()
Default constructor
|
Swarm(Swarm input)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static Swarm |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Swarm |
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.String command
public ai.madara.knowledge.containers.Vector args
public ai.madara.knowledge.containers.Double minAlt
public ai.madara.knowledge.containers.Integer size
public Swarm()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic Swarm(Swarm input) throws GamsDeadObjectException
input - the swarm object to copyGamsDeadObjectExceptionpublic static Swarm fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static Swarm 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.