|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmas.agentsHempelsSofa.data.Environment
public class Environment
An implementation of the environment as seen by an agent.
Constructor Summary | |
---|---|
Environment()
|
Method Summary | |
---|---|
java.lang.String |
getDeadline()
|
eis.iilang.Action |
getLastAction()
|
int |
getLastStepScore()
|
int |
getMaxAreaValue()
|
int |
getMoney()
|
int |
getNumberOfInspectedAgents()
|
int |
getNumberOfSuccessfulAttacks()
|
int |
getNumberOfSuccessfulParries()
|
int |
getScore()
|
int |
getStep()
|
int |
getZonesValue()
|
int |
getZoneValue()
|
void |
increaseNumberOfInspectedAgents(int n)
|
void |
increaseNumberOfSuccessfulAttacks(int n)
increases the number of successful attacks about n |
void |
increaseNumberOfSuccessfulParries(int n)
increases the number of successful parries about n |
boolean |
isLastActionSuccessful()
|
void |
setDeadline(java.lang.String deadline)
|
void |
setLastAction(eis.iilang.Action lastAction)
|
void |
setLastActionSuccessful(boolean lastActionSuccessful)
|
void |
setLastStepScore(int lastStepScore)
|
void |
setMaxAreaValue(int numberOfAreaValue)
|
void |
setMoney(int money)
|
void |
setNumberOfInspectedAgents(int numberOfInspectedAgents)
|
void |
setNumberOfSuccessfulAttacks(int numberOfSuccessfulAttacks)
|
void |
setNumberOfSuccessfulParries(int numberOfSuccessfulParries)
|
void |
setScore(int score)
|
void |
setStep(int step)
|
void |
setZonesValue(int zonesValue)
|
void |
setZoneValue(int zoneValue)
|
java.util.LinkedList<apltk.interpreter.data.LogicBelief> |
toBeliefs()
transforms the environment into beliefs |
void |
update(int step,
int score,
int zoneValue,
int zonesValue,
int lastStepScore,
eis.iilang.Action lastAction,
boolean lastActionSuccessful,
int money,
java.lang.String deadline)
updates the environment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Environment()
Method Detail |
---|
public void update(int step, int score, int zoneValue, int zonesValue, int lastStepScore, eis.iilang.Action lastAction, boolean lastActionSuccessful, int money, java.lang.String deadline)
step
- score
- zoneValue
- zonesValue
- lastStepScore
- lastAction
- lastActionSuccessful
- money
- deadline
- public void setStep(int step)
step
- the step to setpublic int getStep()
public void setScore(int score)
score
- the score to setpublic int getScore()
public void setZoneValue(int zoneValue)
zoneValue
- the zoneValue to setpublic int getZoneValue()
public void setZonesValue(int zonesValue)
zonesValue
- the zonesValue to setpublic int getZonesValue()
public void setLastStepScore(int lastStepScore)
lastStepScore
- the lastStepScore to setpublic int getLastStepScore()
public void setLastAction(eis.iilang.Action lastAction)
lastAction
- the lastAction to setpublic eis.iilang.Action getLastAction()
public void setLastActionSuccessful(boolean lastActionSuccessful)
lastActionSuccessful
- the lastActionSuccessful to setpublic boolean isLastActionSuccessful()
public void setMoney(int money)
money
- the money to setpublic int getMoney()
public void setDeadline(java.lang.String deadline)
deadline
- the deadline to setpublic java.lang.String getDeadline()
public java.util.LinkedList<apltk.interpreter.data.LogicBelief> toBeliefs()
public void setNumberOfInspectedAgents(int numberOfInspectedAgents)
numberOfInspectedAgents
- the numberOfInspectedAgents to setpublic int getNumberOfInspectedAgents()
public void increaseNumberOfInspectedAgents(int n)
public void setNumberOfSuccessfulAttacks(int numberOfSuccessfulAttacks)
numberOfSuccessfulAttacks
- the numberOfSuccessfulAttacks to setpublic int getNumberOfSuccessfulAttacks()
public void increaseNumberOfSuccessfulAttacks(int n)
n
- public void setNumberOfSuccessfulParries(int numberOfSuccessfulParries)
numberOfSuccessfulParries
- the numberOfSuccessfulParries to setpublic int getNumberOfSuccessfulParries()
public void increaseNumberOfSuccessfulParries(int n)
n
- public void setMaxAreaValue(int numberOfAreaValue)
numberOfAreaValue
- the numberOfAreaValue to setpublic int getMaxAreaValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |