|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.model.AscapeObject
org.ascape.model.Agent
org.ascape.model.LocatedAgent
org.ascape.model.Cell
org.ascape.model.CellOccupant
org.ascape.model.Scape
org.ascape.gis.model.ScapeTime
public class ScapeTime
A scape that is aware of time. Intended to be the root scape (model scape) of a model that is concerned with time. This may be delegated to a seperate class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ascape.model.Scape |
---|
Scape.ConditionalIterator, Scape.DrawFeatureObservable |
Field Summary |
---|
Fields inherited from class org.ascape.model.Scape |
---|
AGENT_ORDER, agentsPerIteration, ALL_AGENTS, CLEAR_STATS_RULE, COLLECT_STATS_RULE, COMPARE_ORDERED_QUALIFIERS, COMPLETE_TOUR, copyrightAndCredits, CREATE_GRAPHIC_VIEW_RULE, CREATE_RULE, CREATE_SCAPE_RULE, CREATE_VIEW_RULE, EXECUTE_RULES_RULE, INITIAL_RULES_RULE, initialRules, prototypeAgent, REPEATED_DRAW, RULE_ORDER, version |
Fields inherited from class org.ascape.model.CellOccupant |
---|
PLAY_HOST_RULE, RANDOM_WALK_AVAILABLE_RULE |
Fields inherited from class org.ascape.model.Cell |
---|
CALCULATE_NEIGHBORS_RULE, neighbors, PLAY_NEIGHBORS_RULE, PLAY_RANDOM_NEIGHBOR_RULE |
Fields inherited from class org.ascape.model.LocatedAgent |
---|
agentSize, coordinate, MOVE_RANDOM_LOCATION_RULE, RANDOM_WALK_RULE, thisUpdate |
Fields inherited from class org.ascape.model.Agent |
---|
DEATH_RULE, FISSIONING_RULE, FORCE_DIE_RULE, FORCE_FISSION_RULE, FORCE_MOVE_RULE, INITIALIZE_RULE, ITERATE_AND_UPDATE_RULE, ITERATE_RULE, METABOLISM_RULE, MOVEMENT_RULE, PLAY_OTHER, UPDATE_RULE |
Fields inherited from class org.ascape.model.AscapeObject |
---|
ARBITRARY_SEED, name, scape |
Constructor Summary | |
---|---|
ScapeTime()
|
Method Summary | |
---|---|
double |
convertProbPerDayToProbPerIteration(double probPerDay)
|
double |
convertProbPerHourToProbPerIteration(double probPerHour)
|
double |
convertProbPerMinuteToProbPerIteration(double probPerMinute)
Converts probability per minute to probability per iteration |
java.lang.String |
getPeriodDescription()
Returns a string description of the elapsed simulated time since the simulation began, in the form "d, hh:mm:ss" |
int |
getSecondsPerIteration()
Gets the number of seconds per iteration |
int |
getSecondsSinceStart()
Gets the number of seconds since the simulation started |
void |
initialize()
Initialize the model, removing any agents that might have been added in a prewvious run, and checking that settings are set correctly. |
double |
ratePerDayAsRatePerIteration(double ratePerDay)
Return the parameter rate per day as rate per iteration. |
double |
ratePerHourAsRatePerIteration(double ratePerHour)
Return the parameter rate per hour as rate per iteration. |
double |
ratePerMinuteAsRatePerIteration(double ratePerMinute)
Return the parameter rate per minute as rate per iteration. |
double |
ratePerSecondAsRatePerIteration(double ratePerSecond)
Return the parameter rate per second as rate per iteration. |
void |
scapeIterated(ScapeEvent event)
Each timestep, increment secondsSinceStart, and tell the CommunicationsNetwork and the CommandCenter to check their queues. |
void |
setSecondsPerIteration(int secondsPerIteration)
Sets the number of seconds per iteration |
Methods inherited from class org.ascape.model.CellOccupant |
---|
die, findAvailableNeighbors, findNearest, findNearest, findNearest, findNearest, findNearest, findNeighbors, findNeighborsOnHost, findRandomAvailableNeighbor, findRandomNeighbor, findRandomNeighborOnHost, findWithin, findWithin, findWithin, getCoordinate, getHostCell, getHostScape, leave, moveAway, moveTo, moveToRandomLocation, moveToward, playNeighbors, playRandomNeighbor, randomWalk, randomWalkAvailable, setHostCell, setHostScape |
Methods inherited from class org.ascape.model.Cell |
---|
calculateNeighbors, countNeighbors, findOccupants, findRelative, getDistance, getNeighbors, getNeighbors, getNetwork, getOccupant, hostedCondition, isAvailable, removeOccupant, setNeighbors, setNeighborsList, setNetwork, setOccupant |
Methods inherited from class org.ascape.model.LocatedAgent |
---|
calculateDistance, calculateDistance, countWithin, countWithin, countWithin, findMaximumWithin, findWithin, getAgentSize, hasWithin, hasWithin, hasWithin, isUpdateNeeded, moveAway, moveAway, moveTo, moveToward, moveToward, requestUpdate, requestUpdateNext, setAgentSize, setCoordinate |
Methods inherited from class org.ascape.model.Agent |
---|
clearDeleteMarker, death, deathCondition, execute, execute, fission, fissionCondition, fissioning, getColor, getColor, getImage, getImage, isDelete, isInitialized, iterate, markForDeletion, metabolism, move, movement, movementCondition, play, scapeCreated, setInitialized, setScape, update |
Methods inherited from class org.ascape.model.AscapeObject |
---|
diffDeep, diffDeep, diffDeepBFS, diffDeepDFS, diffDeepValidate, diffDeepVisit, equalsDeep, equalsDeep, equalsDeep, getComparisonStream, getRandom, getRandomSeed, getScape, randomInRange, randomInRange, randomIs, randomToLimit, reseed, setComparisonStream, setName, setRandom, setRandomSeed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Methods inherited from interface org.ascape.model.event.ScapeListener |
---|
getScape |
Methods inherited from interface org.ascape.model.space.Location |
---|
clearDeleteMarker, isDelete, markForDeletion, setCoordinate |
Constructor Detail |
---|
public ScapeTime()
Method Detail |
---|
public double ratePerDayAsRatePerIteration(double ratePerDay)
ratePerDay
- parameter
public double ratePerHourAsRatePerIteration(double ratePerHour)
ratePerHour
- parameter
public double ratePerMinuteAsRatePerIteration(double ratePerMinute)
ratePerMinute
- parameter
public double ratePerSecondAsRatePerIteration(double ratePerSecond)
ratePerSecond
- parameter
public double convertProbPerMinuteToProbPerIteration(double probPerMinute)
probPerMinute
- parameter
public double convertProbPerHourToProbPerIteration(double probPerHour)
public double convertProbPerDayToProbPerIteration(double probPerDay)
public int getSecondsPerIteration()
public void initialize()
initialize
in interface Location
initialize
in class Scape
public void setSecondsPerIteration(int secondsPerIteration)
secondsPerIteration
- the secondsPerIterationpublic void scapeIterated(ScapeEvent event)
scapeIterated
in interface ScapeListener
scapeIterated
in class Scape
event
- the associated scape eventpublic int getSecondsSinceStart()
public java.lang.String getPeriodDescription()
getPeriodDescription
in class Scape
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |