|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.AbstractEnvironment
org.vizzini.game.simulation.AbstractSimulationEnvironment
public abstract class AbstractSimulationEnvironment
Provides base functionality for a simulation environment.
Constructor Summary | |
---|---|
AbstractSimulationEnvironment()
Construct this object. |
Method Summary | |
---|---|
void |
configure(Properties properties)
Configure this environment. |
long |
getMinCycleTime()
|
Date |
getSimDate()
|
Date |
getStartDate()
|
void |
incrementTurnNumber()
Increment the turn number. |
void |
performAction(IAction action)
Perform the given action. |
protected void |
setMinCycleTime(long minCycleTime)
|
protected void |
setSimDate(Date simDate)
|
void |
setStartDate(Date startDate)
|
void |
undoAction(IAction action)
Undo the given action. |
void |
update(long deltaTime)
Update the environment for the given elapsed time. |
Methods inherited from class org.vizzini.game.AbstractEnvironment |
---|
addStateListener, clone, copy, createInitialTokens, equals, get, getAdjudicator, getAgentCollection, getStateManager, getTeamCollection, getTokenCollection, getTokenCollectionClass, getTurnNumber, hashCode, isFiringStateChanges, open, performActions, removeStateListener, reset, setAdjudicator, setAgentCollection, setFiringStateChanges, setTokenCollectionClass, setTurnNumber |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.vizzini.game.IEnvironment |
---|
addStateListener, clone, copy, get, getAdjudicator, getAgentCollection, getTeamCollection, getTokenCollection, getTurnNumber, isFiringStateChanges, open, performActions, removeStateListener, reset, setAdjudicator, setAgentCollection, setFiringStateChanges, setTurnNumber |
Constructor Detail |
---|
public AbstractSimulationEnvironment()
Method Detail |
---|
public void configure(Properties properties) throws InstantiationException, IllegalAccessException
configure
in interface IEnvironment
configure
in class AbstractEnvironment
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
public long getMinCycleTime()
getMinCycleTime
in interface ISimulationEnvironment
public Date getSimDate()
getSimDate
in interface ISimulationEnvironment
public Date getStartDate()
getStartDate
in interface ISimulationEnvironment
public void incrementTurnNumber()
incrementTurnNumber
in interface IEnvironment
incrementTurnNumber
in class AbstractEnvironment
public void performAction(IAction action)
performAction
in interface IEnvironment
action
- Action.public void setStartDate(Date startDate)
setStartDate
in interface ISimulationEnvironment
startDate
- the startDate to setpublic void undoAction(IAction action)
undoAction
in interface IEnvironment
action
- Action.public void update(long deltaTime)
update
in interface IEnvironment
update
in class AbstractEnvironment
deltaTime
- Delta time. (milliseconds)protected void setMinCycleTime(long minCycleTime)
minCycleTime
- the minCycleTime to setprotected void setSimDate(Date simDate)
simDate
- the simDate to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |