edu.ntnu.ecosim.agents
Class Agent

java.lang.Object
  extended by edu.ntnu.ecosim.agents.Agent
Direct Known Subclasses:
Consumer, ServiceProvider

public abstract class Agent
extends java.lang.Object

The Class Agent This class contains the methods that all agents must implement

Author:
martin.andreas.borke

Field Summary
protected  Market market
          The market that the agent operates within.
 
Constructor Summary
protected Agent(Market market)
          The Constructor for an agent.
 
Method Summary
protected abstract  void performAction()
          This is the method that is called for each new time step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

market

protected Market market
The market that the agent operates within.

Constructor Detail

Agent

protected Agent(Market market)
The Constructor for an agent.

Parameters:
market - the market
Method Detail

performAction

protected abstract void performAction()
This is the method that is called for each new time step. The method contains the basic operations that an agent performs for each time step.