public class SearchArea extends GamsJNI
| Constructor and Description |
|---|
SearchArea() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PrioritizedRegion region)
Adds a region to the search area
|
boolean |
contains(GpsPosition point)
Checks to see if the point is contained in this region
|
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 SearchArea |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static SearchArea |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
Region |
getConvexHull()
Gets bounding box
|
double |
getMaxAlt()
Gets the maximum altitude
|
double |
getMaxLat()
Gets the maximum latitude
|
double |
getMinAlt()
Gets the minimum altitude
|
double |
getMinLat()
Gets the minimum latitude
|
double |
getMinLong()
Gets the minimum longitude
|
String |
getName()
Get name of the SearchArea
|
long |
getPriority(GpsPosition point)
Gets priority of a gps position
|
PrioritizedRegion[] |
getRegions()
Gets the regions within the search area
|
double |
jni_getMaxLong()
Gets the maximum longitude
|
void |
modify()
Resend SearchArea over KnowledgeBase
|
void |
setName(String n)
Set name of the SearchArea
|
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()
Converts the position into a string
|
public String getName() throws GamsDeadObjectException
GamsDeadObjectExceptionpublic void setName(String n) throws GamsDeadObjectException
n - new name for SearchAreaGamsDeadObjectExceptionpublic String toString()
public void add(PrioritizedRegion region) throws GamsDeadObjectException
region - the region to add to the search areaGamsDeadObjectExceptionpublic Region getConvexHull() throws GamsDeadObjectException
GamsDeadObjectExceptionpublic boolean contains(GpsPosition point) throws GamsDeadObjectException
point - point to checkGamsDeadObjectExceptionpublic long getPriority(GpsPosition point) throws GamsDeadObjectException
point - point to checkGamsDeadObjectExceptionpublic double getMaxAlt()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getMinAlt()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getMaxLat()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getMinLat()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double jni_getMaxLong()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic double getMinLong()
throws GamsDeadObjectException
GamsDeadObjectExceptionpublic PrioritizedRegion[] getRegions() throws GamsDeadObjectException
GamsDeadObjectExceptionpublic static SearchArea fromPointer(long cptr) throws GamsDeadObjectException
cptr - C pointer to the objectGamsDeadObjectExceptionpublic static SearchArea 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
kb - KnowledgeBase to copy SearchArea information toGamsDeadObjectExceptionpublic void fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
throws GamsDeadObjectException
kb - KnowledgeBase to copy SearchArea information toname - name of the SearchAreaGamsDeadObjectExceptionpublic void toContainer(ai.madara.knowledge.KnowledgeBase kb)
throws GamsDeadObjectException
kb - KnowledgeBase with SearchArea informationGamsDeadObjectExceptionpublic void toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
throws GamsDeadObjectException
kb - KnowledgeBase with SearchArea informationname - name of the SearchAreaGamsDeadObjectExceptionpublic void modify()
public void free()
Copyright © 2018. All rights reserved.