public abstract class Action
extends java.lang.Object
Constructor and Description |
---|
Action()
Empty constructor used for inheritance.
|
Action(AgentID agentID)
Constructor which sets the agentID of an agent.
|
Modifier and Type | Method and Description |
---|---|
AgentID |
getAgent()
Returns the ID of the agent which created the action.
|
static Bid |
getBidFromAction(Action currentAction)
Method which returns the bid of the current action if it
is of the type Offer or else Null.
|
abstract java.lang.String |
toString()
Enforces that actions implements a string-representation.
|
public Action()
public Action(AgentID agentID)
agentID
- of the agent which created the action.public AgentID getAgent()
public abstract java.lang.String toString()
toString
in class java.lang.Object