public class ActionApproximationResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ApproximationResult |
approximationResult
The actual approximation result
|
GroundedAction |
ga
The grounded action this approximation was for
|
| Constructor and Description |
|---|
ActionApproximationResult(GroundedAction ga,
ApproximationResult approximationResult)
Initializes with a given action and approximation result
|
| Modifier and Type | Method and Description |
|---|---|
static ActionApproximationResult |
extractApproximationForAction(java.util.List<ActionApproximationResult> approximations,
GroundedAction ga)
Given a list of
ActionApproximationResult objects, this method will return the corresponding ActionApproximationResult
for the given action. |
public GroundedAction ga
public ApproximationResult approximationResult
public ActionApproximationResult(GroundedAction ga, ApproximationResult approximationResult)
ga - the grounded action that this approximation is forapproximationResult - the approximation resultpublic static ActionApproximationResult extractApproximationForAction(java.util.List<ActionApproximationResult> approximations, GroundedAction ga)
ActionApproximationResult objects, this method will return the corresponding ActionApproximationResult
for the given action.approximations - list of approximationsga - the grounded action for which the corrsponding approximation result should be returned.ActionApproximationResult for the given action. Null if there is no corresponding approximation result.