|
||||||||||
| 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 IEnvironmentconfigure in class AbstractEnvironmentproperties - Source of configuration information.
InstantiationException
IllegalAccessExceptionpublic long getMinCycleTime()
getMinCycleTime in interface ISimulationEnvironmentpublic Date getSimDate()
getSimDate in interface ISimulationEnvironmentpublic Date getStartDate()
getStartDate in interface ISimulationEnvironmentpublic void incrementTurnNumber()
incrementTurnNumber in interface IEnvironmentincrementTurnNumber in class AbstractEnvironmentpublic void performAction(IAction action)
performAction in interface IEnvironmentaction - Action.public void setStartDate(Date startDate)
setStartDate in interface ISimulationEnvironmentstartDate - the startDate to setpublic void undoAction(IAction action)
undoAction in interface IEnvironmentaction - Action.public void update(long deltaTime)
update in interface IEnvironmentupdate in class AbstractEnvironmentdeltaTime - 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 |