public class PrioritizedRegion extends Region
| Constructor and Description |
|---|
PrioritizedRegion()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
void |
fromContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values from a MADARA knowledge base
|
void |
fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values from a MADARA knowledge base
|
static PrioritizedRegion |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static PrioritizedRegion |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
long |
getPriority()
Gets the priority of the region
|
void |
modify()
Resends Prioritized_Region over KB
|
void |
setPriority(long priority)
Sets the priority of the region
|
void |
toContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values to a MADARA knowledge base
|
void |
toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values to a MADARA knowledge base
|
String |
toString()
Get String representation of the PrioritizedRegion
|
addVertex, contains, getArea, getBoundingBox, getDistance, getMaxAlt, getMaxLat, getMaxLong, getMinAlt, getMinLat, getMinLong, getName, getVertices, setNamepublic PrioritizedRegion()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic String toString()
public long getPriority()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void setPriority(long priority)
throws GamsDeadObjectException
priority - the priority of the regionGamsDeadObjectExceptionpublic static PrioritizedRegion fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static PrioritizedRegion fromPointer(long cptr, boolean shouldManage) throws GamsDeadObjectException
cptr - C pointer to the objectshouldManage - if true, manage the pointerGamsDeadObjectExceptionpublic void fromContainer(ai.madara.knowledge.KnowledgeBase kb)
throws GamsDeadObjectException
fromContainer in class Regionkb - KnowledgeBase to copy region infomration toGamsDeadObjectExceptionpublic void fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
throws GamsDeadObjectException
fromContainer in class Regionkb - KnowledgeBase to copy region infomration toname - name of the prioritized regionGamsDeadObjectExceptionpublic void toContainer(ai.madara.knowledge.KnowledgeBase kb)
throws GamsDeadObjectException
toContainer in class Regionkb - KnowledgeBase with region informationGamsDeadObjectExceptionpublic void toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
throws GamsDeadObjectException
toContainer in class Regionkb - KnowledgeBase with region informationname - name of the prioritized regionGamsDeadObjectExceptionpublic void free()
Copyright © 2018. All rights reserved.