|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrobocup.lab.Brain
public class Brain
The Class Brain.
| Field Summary | |
|---|---|
private static org.apache.log4j.Logger |
log
The log. |
private static java.util.Set<Literal> |
memory
The memory. |
private static java.util.List<java.lang.String> |
plan
The plan. |
private static plplan.javaapi.PLPlan |
planner
The planner. |
private static java.util.Set<Literal> |
sensors
The sensors. |
private static java.util.PriorityQueue<Literal> |
targets
The targets. |
| Constructor Summary | |
|---|---|
Brain()
Instantiates a new brain. |
|
| Method Summary | |
|---|---|
void |
addSense(Literal l)
Adds a Literal to the sensors set. |
void |
consumeAction()
Consume the current action in the plan. |
private Literal |
evaluate(Literal l,
java.lang.String mode)
Evaluate the literal, in order to find a corresponding local goal. |
private void |
initPlanner()
Inits the planner. |
java.lang.String |
readAction()
Read the current action in the plan. |
void |
removeSense(Literal l)
Removes a Literal from the sensors set. |
private void |
replan()
Replan. |
void |
resetSensors()
Reset sensors. |
void |
restart()
Restart all the brain instance. |
void |
tryReplan()
Try to replan. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
private static java.util.Set<Literal> memory
private static java.util.Set<Literal> sensors
private static java.util.PriorityQueue<Literal> targets
private static plplan.javaapi.PLPlan planner
private static java.util.List<java.lang.String> plan
| Constructor Detail |
|---|
public Brain()
| Method Detail |
|---|
private void initPlanner()
private void replan()
public void addSense(Literal l)
Literal to the sensors set.
l - the literalpublic void removeSense(Literal l)
Literal from the sensors set.
l - the literal
private Literal evaluate(Literal l,
java.lang.String mode)
l - the literalmode - the mode (add, remove)
public void resetSensors()
public java.lang.String readAction()
public void consumeAction()
public void restart()
public void tryReplan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||