| Package | Description |
|---|---|
| ai.gams.algorithms | |
| ai.gams.controllers | |
| ai.gams.platforms | |
| ai.gams.tests | |
| ai.gams.utility | |
| ai.gams.variables |
| Modifier and Type | Method and Description |
|---|---|
int |
AlgorithmInterface.analyze()
Analyzes the algorithm for new status information.
|
int |
DebuggerAlgorithm.analyze()
Analyzes the state of the algorithm
|
void |
BaseAlgorithm.assume(long cptr)
Facade for the protected setCPtr method in GamsJNI
|
int |
MessageProfiling.execute()
Executes next step in the algorithm.
|
int |
AlgorithmInterface.execute()
Executes next step in the algorithm.
|
int |
DebuggerAlgorithm.execute()
Executes the next stage of the algorithm
|
void |
BaseAlgorithm.init(BaseController controller)
Initialize the platform with controller variables.
|
int |
AlgorithmInterface.plan()
Plans next steps in the algorithm.
|
int |
DebuggerAlgorithm.plan()
Plans the next stage of the algorithm
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseController.addAlgorithmFactory(String name,
AlgorithmFactory factory)
Adds a named algorithm factory to the controller, which allows for usage
of the named factory in swarm.command and device.*.command
|
long |
BaseController.analyze()
Analyzes the platform, algorithm and accents
|
long |
BaseController.execute()
Executes the algorithm and accents
|
void |
BaseController.free()
Deletes the C instantiation.
|
void |
BaseController.initAccent(String name,
ai.madara.knowledge.KnowledgeList args)
Initialize an accent within the controller
|
void |
BaseController.initAlgorithm(BaseAlgorithm algorithm)
Initialize an algorithm within the controller
|
void |
BaseController.initAlgorithm(String name,
ai.madara.knowledge.KnowledgeList args)
Initialize an algorithm within the controller
|
void |
BaseController.initPlatform(BasePlatform platform)
Initialize a platform within the controller
|
void |
BaseController.initPlatform(String name)
Initialize a platform within the controller
|
void |
BaseController.initPlatform(String name,
ai.madara.knowledge.KnowledgeList args)
Initialize a platform within the controller
|
void |
BaseController.initVars(BaseAlgorithm algorithm)
Initialize the variables for an algorithm.
|
void |
BaseController.initVars(BasePlatform platform)
Initialize the variables for a platform.
|
void |
BaseController.initVars(long id,
long processes)
Initialize the variables within the controller
|
long |
BaseController.monitor()
Monitors the platform's sensors
|
long |
BaseController.plan()
Plans the algorithm and accents
|
long |
BaseController.run(double period,
double duration)
Runs the monitor, analyze, plan and execute loop with a
specific period and duration
|
long |
BaseController.run(double loopPeriod,
double duration,
double sendPeriod)
Runs iterations of the MAPE loop with specified periods between loops
|
long |
BaseController.runHz(double loopHz,
double duration,
double sendHz)
Runs iterations of the MAPE loop with specified hertz
|
long |
BaseController.systemAnalyze()
Analyzes the controller and system
|
| Constructor and Description |
|---|
BaseController(BaseController input)
Copy constructor
|
BaseController(ai.madara.knowledge.KnowledgeBase knowledge)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
PlatformInterface.analyze()
Analyzes the platform.
|
int |
DebuggerPlatform.analyze()
Analyzes the platform.
|
void |
BasePlatform.assume(long cptr)
Facade for the protected setCPtr method in GamsJNI
|
double |
PlatformInterface.getAccuracy()
Returns the accuracy in meters
|
double |
DebuggerPlatform.getAccuracy()
Returns the accuracy in meters
|
double |
PlatformInterface.getMinSensorRange()
Get sensor radius
|
double |
PlatformInterface.getMoveSpeed()
Gets the movement speed
|
double |
DebuggerPlatform.getMoveSpeed()
Gets the movement speed
|
Position |
PlatformInterface.getPosition()
Returns the current position
|
Position |
DebuggerPlatform.getPosition()
Returns the current GPS position
|
double |
PlatformInterface.getPositionAccuracy()
Returns the position accuracy in meters
|
double |
DebuggerPlatform.getPositionAccuracy()
Returns the position accuracy in meters
|
int |
PlatformInterface.home()
Returns to the home location.
|
int |
DebuggerPlatform.home()
Returns to the home location.
|
void |
BasePlatform.init(BaseController controller)
Initialize the platform with controller variables.
|
int |
PlatformInterface.land()
Requests the platform to land.
|
int |
DebuggerPlatform.land()
Requests the platform to land.
|
int |
PlatformInterface.move(Position target,
double proximity)
Initializes a move to the target position.
|
int |
DebuggerPlatform.move(Position target,
double proximity)
Initializes a move to the target position.
|
int |
PlatformInterface.rotate(Axes axes)
Initializes a rotate along x, y, z axes.
|
int |
DebuggerPlatform.rotate(Axes target)
Initializes a rotate along x, y, z axes.
|
int |
PlatformInterface.sense()
Gets results from the platform's sensors.
|
int |
DebuggerPlatform.sense()
Gets results from the platform's sensors.
|
void |
PlatformInterface.stopMove()
Stops moving
|
void |
DebuggerPlatform.stopMove()
Stops moving
|
int |
PlatformInterface.takeoff()
Takes off.
|
int |
DebuggerPlatform.takeoff()
Takes off.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
TestMessagingThroughput.main(String[] args) |
static void |
TestUtility.main(String[] args) |
void |
TestMessagingThroughput.testBoth() |
static void |
TestUtility.testPrioritizedRegion() |
void |
TestMessagingThroughput.testReader() |
static void |
TestUtility.testRegion() |
void |
TestMessagingThroughput.testWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
SearchArea.add(PrioritizedRegion region)
Adds a region to the search area
|
void |
Region.addVertex(GpsPosition point)
Adds a GPS vertex to this region
|
boolean |
SearchArea.contains(GpsPosition point)
Checks to see if the point is contained in this region
|
boolean |
Region.contains(GpsPosition point)
Checks to see if the point is contained in this region
|
boolean |
Position.equals(Position other)
Checks two instances for equality
|
void |
Position.free()
Deletes the C instantiation.
|
void |
GpsPosition.free()
Deletes the C instantiation.
|
void |
Position.fromArray(double[] arr)
Copy values from Array.
|
void |
PrioritizedRegion.fromContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values from a MADARA knowledge base
|
void |
SearchArea.fromContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values from a MADARA knowledge base
|
void |
Region.fromContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values from a MADARA knowledge base
|
void |
PrioritizedRegion.fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values from a MADARA knowledge base
|
void |
SearchArea.fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values from a MADARA knowledge base
|
void |
Region.fromContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values from a MADARA knowledge base
|
void |
Position.fromContainer(ai.madara.knowledge.containers.NativeDoubleVector cont)
Copy values from a container
|
static PrioritizedRegion |
PrioritizedRegion.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Position |
Position.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static SearchArea |
SearchArea.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static GpsPosition |
GpsPosition.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Region |
Region.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static PrioritizedRegion |
PrioritizedRegion.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Position |
Position.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static SearchArea |
SearchArea.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static GpsPosition |
GpsPosition.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Region |
Region.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
double |
GpsPosition.getAltitude()
Returns the altitude
|
double |
Region.getArea()
Gets area of the region
|
Region |
Region.getBoundingBox()
Gets bounding box
|
Region |
SearchArea.getConvexHull()
Gets bounding box
|
double |
Region.getDistance(GpsPosition point)
Get distance from any point in this region
|
double |
GpsPosition.getLatitude()
Returns the latitude
|
double |
GpsPosition.getLongitude()
Returns the longitude
|
double |
SearchArea.getMaxAlt()
Gets the maximum altitude
|
double |
Region.getMaxAlt()
Gets the maximum altitude
|
double |
SearchArea.getMaxLat()
Gets the maximum latitude
|
double |
Region.getMaxLat()
Gets the maximum latitude
|
double |
Region.getMaxLong()
Gets the maximum longitude
|
double |
SearchArea.getMinAlt()
Gets the minimum altitude
|
double |
Region.getMinAlt()
Gets the minimum altitude
|
double |
SearchArea.getMinLat()
Gets the minimum latitude
|
double |
Region.getMinLat()
Gets the minimum latitude
|
double |
SearchArea.getMinLong()
Gets the minimum longitude
|
double |
Region.getMinLong()
Gets the minimum longitude
|
String |
SearchArea.getName()
Get name of the SearchArea
|
String |
Region.getName()
Get name of the region
|
long |
PrioritizedRegion.getPriority()
Gets the priority of the region
|
long |
SearchArea.getPriority(GpsPosition point)
Gets priority of a gps position
|
PrioritizedRegion[] |
SearchArea.getRegions()
Gets the regions within the search area
|
GpsPosition[] |
Region.getVertices()
Gets the GPS vertices that form the region boundary
|
double |
Position.getX()
Returns the latitude
|
double |
Position.getY()
Returns the longitude
|
double |
Position.getZ()
Returns the altitude
|
double |
SearchArea.jni_getMaxLong()
Gets the maximum longitude
|
void |
GpsPosition.setAltitude(double input)
Sets the altitude
|
void |
GpsPosition.setLatitude(double input)
Sets the latitude
|
void |
GpsPosition.setLongitude(double input)
Sets the longitude
|
void |
SearchArea.setName(String n)
Set name of the SearchArea
|
void |
Region.setName(String n)
Set name of the region
|
void |
PrioritizedRegion.setPriority(long priority)
Sets the priority of the region
|
void |
Position.setX(double input)
Sets the latitude/x coord
|
void |
Position.setY(double input)
Sets the longitude/y coord
|
void |
Position.setZ(double input)
Sets the altitude/z coord
|
double[] |
Position.toArray()
Get double array representation of Position
|
void |
PrioritizedRegion.toContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values to a MADARA knowledge base
|
void |
SearchArea.toContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values to a MADARA knowledge base
|
void |
Region.toContainer(ai.madara.knowledge.KnowledgeBase kb)
Helper function for copying values to a MADARA knowledge base
|
void |
PrioritizedRegion.toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values to a MADARA knowledge base
|
void |
SearchArea.toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values to a MADARA knowledge base
|
void |
Region.toContainer(ai.madara.knowledge.KnowledgeBase kb,
String name)
Helper function for copying values to a MADARA knowledge base
|
void |
Position.toContainer(ai.madara.knowledge.containers.NativeDoubleVector cont)
Copy values to a container
|
| Constructor and Description |
|---|
GpsPosition() |
GpsPosition(double lat,
double lon,
double alt) |
GpsPosition(Position input) |
Position(ai.madara.knowledge.containers.NativeDoubleVector cont)
Constructor from container
|
PrioritizedRegion()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
HashSet<Position> |
Sensor.discretize(Region region)
Discretizes the region into individual positions
|
HashSet<Position> |
Sensor.discretize(SearchArea area)
Discretizes the area into individual positions
|
static PlatformStatus |
PlatformStatus.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Agent |
Agent.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Self |
Self.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Sensor |
Sensor.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Swarm |
Swarm.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static AlgorithmStatus |
AlgorithmStatus.fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static PlatformStatus |
PlatformStatus.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Agent |
Agent.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Self |
Self.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Sensor |
Sensor.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static Swarm |
Swarm.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
static AlgorithmStatus |
AlgorithmStatus.fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
double |
Sensor.getDiscretization()
Gets the discretization value for the sensor
|
GpsPosition |
Sensor.getGpsFromIndex(Position index)
Gets a GPS coordinate from an index
|
Position |
Sensor.getIndexFromGps(GpsPosition coord)
Gets a GPS coordinate from an index
|
String |
AccentStatus.getName()
Gets the name of the variable
|
String |
PlatformStatus.getName()
Gets the name of the variable
|
String |
Sensor.getName()
Gets the name of the variable
|
String |
AlgorithmStatus.getName()
Gets the name of the variable
|
GpsPosition |
Sensor.getOrigin()
Gets the sensor range in meters.
|
double |
Sensor.getRange()
Gets the sensor range in meters.
|
double |
Sensor.getValue(GpsPosition position)
Gets the value stored at a particular location
|
double |
Sensor.getValue(Position position)
Gets the value stored at a particular location
|
void |
AccentStatus.init()
Initializes the member variables
|
void |
PlatformStatus.init()
Initializes the member variables
|
void |
Agent.init()
Initializes the member variables
|
void |
Self.init()
Initializes the member variables
|
void |
Swarm.init()
Initializes the member variables
|
void |
AlgorithmStatus.init()
Initializes the member variables
|
void |
Self.init(ai.madara.knowledge.KnowledgeBase kb,
long id)
Initializes the id and agent containers within Self
|
void |
AccentStatus.init(ai.madara.knowledge.KnowledgeBase kb,
String name)
Sets the name and knowledge base being referred to
|
void |
PlatformStatus.init(ai.madara.knowledge.KnowledgeBase kb,
String name)
Sets the name and knowledge base being referred to
|
void |
Agent.init(ai.madara.knowledge.KnowledgeBase kb,
String name)
Sets the name and knowledge base being referred to
|
void |
Swarm.init(ai.madara.knowledge.KnowledgeBase kb,
String name)
Sets the name and knowledge base being referred to
|
void |
Sensor.init(ai.madara.knowledge.KnowledgeBase kb,
String name,
double range)
Sets the name and knowledge base being referred to
|
void |
AlgorithmStatus.init(ai.madara.knowledge.KnowledgeBase kb,
String name,
int id)
Sets the name and knowledge base being referred to
|
void |
Self.init(ai.madara.knowledge.Variables vars,
long id)
Initializes the id and agent containers within Self
|
void |
AccentStatus.init(ai.madara.knowledge.Variables vars,
String name)
Sets the name and knowledge base being referred to
|
void |
PlatformStatus.init(ai.madara.knowledge.Variables vars,
String name)
Sets the name and knowledge base being referred to
|
void |
Agent.init(ai.madara.knowledge.Variables vars,
String name)
Sets the name and knowledge base being referred to
|
void |
Swarm.init(ai.madara.knowledge.Variables vars,
String name)
Sets the name and knowledge base being referred to
|
void |
AlgorithmStatus.init(ai.madara.knowledge.Variables vars,
String name,
int id)
Sets the name and knowledge base being referred to
|
void |
Sensor.setOrigin(GpsPosition origin)
Sets the origin for coverage information and discretization
|
void |
Sensor.setRange(double range)
Sets the range of the sensor
|
void |
Sensor.setValue(GpsPosition location,
double value)
Sets a value at a location
|
void |
Sensor.setValue(Position location,
double value)
Sets a value at a location
|
| Constructor and Description |
|---|
AccentStatus()
Default constructor
|
AccentStatus(AccentStatus input)
Copy constructor
|
Agent()
Default constructor
|
Agent(Agent input)
Copy constructor
|
AlgorithmStatus()
Default constructor
|
AlgorithmStatus(AlgorithmStatus input)
Copy constructor
|
PlatformStatus()
Default constructor
|
PlatformStatus(PlatformStatus input)
Copy constructor
|
Self()
Default constructor
|
Self(Self input)
Copy constructor
|
Swarm()
Default constructor
|
Swarm(Swarm input)
Copy constructor
|
Copyright © 2018. All rights reserved.