public abstract class AffordanceType
extends java.lang.Object
| Constructor and Description |
|---|
AffordanceType(java.lang.String affordanceName,
double minCost,
double maxCost,
AffordanceType parent,
int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(AffordanceType childAffordance) |
void |
addRelevantPerceptCategory(java.lang.String relevantPerceptCategory,
java.lang.String perceptCategory) |
abstract double |
calculateExecutionCost(java.util.Map<java.lang.String,Percept> relevantPercepts)
Compute the cost to realize the affordance.
|
abstract double |
computeAffordanceTypeBenefit(java.util.Map<java.lang.String,java.util.List<Percept>> situation,
java.util.Map<java.lang.String,Percept> relevantPercepts)
Compute the benefit of this affordance type to current situation.
|
abstract double |
computeParametersBenefit(java.util.Map<java.lang.String,java.util.List<Percept>> situation,
java.util.Map<java.lang.String,Percept> relevantPercepts)
Compute the percepts' benefits for the current situation.
|
double |
getActionMaxCost() |
double |
getActionMinCost() |
java.lang.String |
getAffordanceName() |
java.util.List<AffordanceType> |
getChildren()
Get the list of affordances types that can turn this affordance possible.
|
int |
getLevel()
Get the level of this AffordanceType in its hierarchy.
|
AffordanceType |
getParent()
Get the parent of this AffordanceType in its hierarchy.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRelevantPerceptsCategories() |
abstract boolean |
isExecutable(java.util.Map<java.lang.String,Percept> relevantPercepts)
Define if this affordance is executable for the actual context.
|
abstract boolean |
isRelevantPercept(Percept percept)
Define if a percept is relevant for the affordance.
|
double |
normalize(double value,
double max,
double min) |
public AffordanceType(java.lang.String affordanceName,
double minCost,
double maxCost,
AffordanceType parent,
int level)
public java.lang.String getAffordanceName()
public double getActionMinCost()
public double getActionMaxCost()
public AffordanceType getParent()
public java.util.List<AffordanceType> getChildren()
public int getLevel()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRelevantPerceptsCategories()
public void addChild(AffordanceType childAffordance)
public void addRelevantPerceptCategory(java.lang.String relevantPerceptCategory,
java.lang.String perceptCategory)
public double normalize(double value,
double max,
double min)
public abstract boolean isExecutable(java.util.Map<java.lang.String,Percept> relevantPercepts)
relevantPercepts - public abstract boolean isRelevantPercept(Percept percept)
percept - public abstract double calculateExecutionCost(java.util.Map<java.lang.String,Percept> relevantPercepts)
relevantPercepts - public abstract double computeAffordanceTypeBenefit(java.util.Map<java.lang.String,java.util.List<Percept>> situation, java.util.Map<java.lang.String,Percept> relevantPercepts)
situation - relevantPercepts - public abstract double computeParametersBenefit(java.util.Map<java.lang.String,java.util.List<Percept>> situation, java.util.Map<java.lang.String,Percept> relevantPercepts)
situation - relevantPercepts -