mas.agentsHempelsSofa.data
Class Environment

java.lang.Object
  extended by mas.agentsHempelsSofa.data.Environment

public class Environment
extends java.lang.Object

An implementation of the environment as seen by an agent.

Author:
Hempels-Sofa

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

Environment

public Environment()
Method Detail

update

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)
updates the environment

Parameters:
step -
score -
zoneValue -
zonesValue -
lastStepScore -
lastAction -
lastActionSuccessful -
money -
deadline -

setStep

public void setStep(int step)
Parameters:
step - the step to set

getStep

public int getStep()
Returns:
the step

setScore

public void setScore(int score)
Parameters:
score - the score to set

getScore

public int getScore()
Returns:
the score

setZoneValue

public void setZoneValue(int zoneValue)
Parameters:
zoneValue - the zoneValue to set

getZoneValue

public int getZoneValue()
Returns:
the zoneValue

setZonesValue

public void setZonesValue(int zonesValue)
Parameters:
zonesValue - the zonesValue to set

getZonesValue

public int getZonesValue()
Returns:
the zonesValue

setLastStepScore

public void setLastStepScore(int lastStepScore)
Parameters:
lastStepScore - the lastStepScore to set

getLastStepScore

public int getLastStepScore()
Returns:
the lastStepScore

setLastAction

public void setLastAction(eis.iilang.Action lastAction)
Parameters:
lastAction - the lastAction to set

getLastAction

public eis.iilang.Action getLastAction()
Returns:
the lastAction

setLastActionSuccessful

public void setLastActionSuccessful(boolean lastActionSuccessful)
Parameters:
lastActionSuccessful - the lastActionSuccessful to set

isLastActionSuccessful

public boolean isLastActionSuccessful()
Returns:
the lastActionSuccessful

setMoney

public void setMoney(int money)
Parameters:
money - the money to set

getMoney

public int getMoney()
Returns:
the money

setDeadline

public void setDeadline(java.lang.String deadline)
Parameters:
deadline - the deadline to set

getDeadline

public java.lang.String getDeadline()
Returns:
the deadline

toBeliefs

public java.util.LinkedList<apltk.interpreter.data.LogicBelief> toBeliefs()
transforms the environment into beliefs

Returns:
a list of beliefs

setNumberOfInspectedAgents

public void setNumberOfInspectedAgents(int numberOfInspectedAgents)
Parameters:
numberOfInspectedAgents - the numberOfInspectedAgents to set

getNumberOfInspectedAgents

public int getNumberOfInspectedAgents()
Returns:
the numberOfInspectedAgents

increaseNumberOfInspectedAgents

public void increaseNumberOfInspectedAgents(int n)

setNumberOfSuccessfulAttacks

public void setNumberOfSuccessfulAttacks(int numberOfSuccessfulAttacks)
Parameters:
numberOfSuccessfulAttacks - the numberOfSuccessfulAttacks to set

getNumberOfSuccessfulAttacks

public int getNumberOfSuccessfulAttacks()
Returns:
the numberOfSuccessfulAttacks

increaseNumberOfSuccessfulAttacks

public void increaseNumberOfSuccessfulAttacks(int n)
increases the number of successful attacks about n

Parameters:
n -

setNumberOfSuccessfulParries

public void setNumberOfSuccessfulParries(int numberOfSuccessfulParries)
Parameters:
numberOfSuccessfulParries - the numberOfSuccessfulParries to set

getNumberOfSuccessfulParries

public int getNumberOfSuccessfulParries()
Returns:
the numberOfSuccessfulParries

increaseNumberOfSuccessfulParries

public void increaseNumberOfSuccessfulParries(int n)
increases the number of successful parries about n

Parameters:
n -

setMaxAreaValue

public void setMaxAreaValue(int numberOfAreaValue)
Parameters:
numberOfAreaValue - the numberOfAreaValue to set

getMaxAreaValue

public int getMaxAreaValue()
Returns:
the numberOfAreaValue


Copyright © 2012. All Rights Reserved.