All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----java.awt.Component | +----java.awt.Canvas | +----aima.examples.OurButton | +----aima.examples.RiskNoRiskGame
A Risk vs. No-Risk game An example JavaBean environment. The interaction between the environment and an agent is executed as its own separate thread. The interaction thread sleeps every percept-action pair so that it's possible to see something happening.
public class RiskNoRiskGame extends aima.examples.OurButton implements aima.cs.learning.intActionListener, java.lang.Runnable { // Constructors 1 public RiskNoRiskGame(); // Methods 22 public synchronized void addStateReward_PerceptListener(StateReward_PerceptListener); protected int agentActionCorrect(int); public synchronized void fireAction(); public double getDiscountFactor(); public int getEpochCount(); public double getScoreDecay(); public int getSleepInterval(); public boolean getStopped(); public int getVerbosity(); public synchronized void intActionPerformed(intActionEvent); public synchronized void removeStateReward_PerceptListener(StateReward_PerceptListener); public void run(); protected boolean sendPercept(); protected boolean sendTerminalPercept(); public void setDiscountFactor(double); public void setEpochCount(int); public void setScoreDecay(double); public void setSleepInterval(int); public void setStopped(boolean); public void setVerbosity(int); public synchronized void startRun(); public synchronized void stopRun(); }
public RiskNoRiskGame()
public void setStopped(boolean s)
public boolean getStopped()
public void setEpochCount(int n)
public int getEpochCount()
public synchronized void addStateReward_PerceptListener(StateReward_PerceptListener l)
public synchronized void removeStateReward_PerceptListener(StateReward_PerceptListener l)
public synchronized void intActionPerformed(intActionEvent e)
- Implements:
- intActionPerformed in interface intActionListener
public synchronized void fireAction()
Deal with button press. Note that this doesn't necessarily fire an action any more.
- Overrides:
- fireAction in class OurButton
public synchronized void startRun()
public synchronized void stopRun()
public void run()
Main environment-agent interaction loop.
- Implements:
- run in interface Runnable
protected int agentActionCorrect(int action)
protected boolean sendPercept()
protected boolean sendTerminalPercept()
public void setSleepInterval(int n)
public int getSleepInterval()
public void setVerbosity(int n)
public int getVerbosity()
public void setScoreDecay(double d)
public double getScoreDecay()
public void setDiscountFactor(double d)
public double getDiscountFactor()
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4