|
||||||||||
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
name.milesparker.epi.region.Region
public class Region
Region Java Implementation. Generated by AMF for model: EpidemicRegional.metaabm in project: org.eclipse.amp.amf.examples.escape
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, PLATFORM_DEFAULT_COLOR, scape |
Constructor Summary | |
---|---|
Region()
Constructs a new Region. |
Method Summary | |
---|---|
void |
calculateTimeStep(int timeStep)
|
java.lang.Object |
clone()
Clones the agent, ensuring that a unique id is assigned. |
protected void |
create2DViews()
|
protected void |
createChartViews()
|
protected City |
createCityPrototype()
Create an instance of City that will be used to populate the cityScape. |
void |
createGraphicViews()
Creates UI views for Region. |
protected void |
createGraphViews()
|
void |
createScape()
Creates the members of Region. |
double |
getCaseMortalityRate()
Gets the Case Mortality Rate property for Region. |
java.util.List<IAgentChild> |
getChildren()
|
int |
getCityCount()
Gets the City Count property for Region. |
Scape |
getCityScape()
Returns the Scape containing Citys. |
IGraphicsAdapter |
getGraphicsAdapter()
|
double |
getInitialInfectionProbability()
Gets the Initial Infection Probability property for Region. |
double |
getMaxContactTransmissionProbability()
Gets the Max Contact Transmission Probability property for Region. |
int |
getMaxPeriodAsymptomInfection()
Gets the Max Period Asymptom Infection property for Region. |
int |
getMaxPeriodExposure()
Gets the Max Period Exposure property for Region. |
int |
getMaxPeriodSymptomInfection()
Gets the Max Period Symptom Infection property for Region. |
double |
getMigrationProbability()
Gets the Migration Probability property for Region. |
double |
getMinContactTransmissionProbability()
Gets the Min Contact Transmission Probability property for Region. |
int |
getMinPeriodAsymptomInfection()
Gets the Min Period Asymptom Infection property for Region. |
int |
getMinPeriodExposure()
Gets the Min Period Exposure property for Region. |
int |
getMinPeriodSymptomInfection()
Gets the Min Period Symptom Infection property for Region. |
double |
getMovementProbability()
Gets the Movement Probability property for Region. |
java.lang.String |
getName()
|
int |
getRegionalLocationCount()
Gets the Regional Location Count property for Region. |
Scape |
getRegionalMap()
Gets the Regional Map property for Region. |
int[] |
getRegionalMapDimensions()
Gets the Dimensions property for Regional Map. |
int |
getRegionalMapHeight()
Gets the Height property for Regional Map. |
int |
getRegionalMapWidth()
Gets the Width property for Regional Map. |
long |
getUID()
|
boolean |
isInitialCityAssigned()
Gets the Initial City Assigned property for Region. |
static void |
main(java.lang.String[] args)
|
void |
scapeSetup(ScapeEvent scapeEvent)
|
void |
setCaseMortalityRate(double _caseMortalityRate)
Sets the Case Mortality Rate property for Region. |
void |
setCityCount(int _cityCount)
Sets the City Count property for Region. |
void |
setInitialCityAssigned(boolean _initialCityAssigned)
Sets the Initial City Assigned property for Region. |
void |
setInitialInfectionProbability(double _initialInfectionProbability)
Sets the Initial Infection Probability property for Region. |
void |
setMaxContactTransmissionProbability(double _maxContactTransmissionProbability)
Sets the Max Contact Transmission Probability property for Region. |
void |
setMaxPeriodAsymptomInfection(int _maxPeriodAsymptomInfection)
Sets the Max Period Asymptom Infection property for Region. |
void |
setMaxPeriodExposure(int _maxPeriodExposure)
Sets the Max Period Exposure property for Region. |
void |
setMaxPeriodSymptomInfection(int _maxPeriodSymptomInfection)
Sets the Max Period Symptom Infection property for Region. |
void |
setMigrationProbability(double _migrationProbability)
Sets the Migration Probability property for Region. |
void |
setMinContactTransmissionProbability(double _minContactTransmissionProbability)
Sets the Min Contact Transmission Probability property for Region. |
void |
setMinPeriodAsymptomInfection(int _minPeriodAsymptomInfection)
Sets the Min Period Asymptom Infection property for Region. |
void |
setMinPeriodExposure(int _minPeriodExposure)
Sets the Min Period Exposure property for Region. |
void |
setMinPeriodSymptomInfection(int _minPeriodSymptomInfection)
Sets the Min Period Symptom Infection property for Region. |
void |
setMovementProbability(double _movementProbability)
Sets the Movement Probability property for Region. |
void |
setRegionalLocationCount(int _regionalLocationCount)
Sets the Regional Location Count property for Region. |
void |
setRegionalMap(Scape _regionalMap)
Sets the Regional Map property for Region. |
void |
setRegionalMapDimensions(int[] _regionalMapDimensions)
Sets the Dimensions property for Regional Map. |
void |
setRegionalMapHeight(int _regionalMapHeight)
Sets the Height property for Regional Map. |
void |
setRegionalMapWidth(int _regionalMapWidth)
Sets the Width property for Regional Map. |
void |
startSimulationAgentChild(int timeStep)
|
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, getPlatformColor, 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 Region()
Method Detail |
---|
public java.util.List<IAgentChild> getChildren()
public long getUID()
public java.lang.Object clone()
clone
in interface ScapeListener
clone
in interface Location
clone
in class Scape
protected City createCityPrototype()
public void createScape()
createScape
in class Scape
Scape.setPopulateOnCreate(boolean)
public void createGraphicViews()
createGraphicViews
in class Scape
public void scapeSetup(ScapeEvent scapeEvent)
scapeSetup
in interface ScapeListener
scapeSetup
in class Scape
scapeEvent
- the associated scape eventpublic Scape getCityScape()
protected void createChartViews()
protected void create2DViews()
protected void createGraphViews()
public IGraphicsAdapter getGraphicsAdapter()
getGraphicsAdapter
in interface IGraphicsAdapted
public static void main(java.lang.String[] args)
public void startSimulationAgentChild(int timeStep)
public void calculateTimeStep(int timeStep)
public int getCityCount()
public void setCityCount(int _cityCount)
_cityCount
- the new City Count value
public double getInitialInfectionProbability()
public void setInitialInfectionProbability(double _initialInfectionProbability)
_initialInfectionProbability
- the new Initial Infection Probability value
public double getMinContactTransmissionProbability()
public void setMinContactTransmissionProbability(double _minContactTransmissionProbability)
_minContactTransmissionProbability
- the new Min Contact Transmission Probability value
public double getMaxContactTransmissionProbability()
public void setMaxContactTransmissionProbability(double _maxContactTransmissionProbability)
_maxContactTransmissionProbability
- the new Max Contact Transmission Probability value
public double getCaseMortalityRate()
public void setCaseMortalityRate(double _caseMortalityRate)
_caseMortalityRate
- the new Case Mortality Rate value
public int getMinPeriodExposure()
public void setMinPeriodExposure(int _minPeriodExposure)
_minPeriodExposure
- the new Min Period Exposure value
public int getMaxPeriodExposure()
public void setMaxPeriodExposure(int _maxPeriodExposure)
_maxPeriodExposure
- the new Max Period Exposure value
public int getMinPeriodAsymptomInfection()
public void setMinPeriodAsymptomInfection(int _minPeriodAsymptomInfection)
_minPeriodAsymptomInfection
- the new Min Period Asymptom Infection value
public int getMaxPeriodAsymptomInfection()
public void setMaxPeriodAsymptomInfection(int _maxPeriodAsymptomInfection)
_maxPeriodAsymptomInfection
- the new Max Period Asymptom Infection value
public int getMinPeriodSymptomInfection()
public void setMinPeriodSymptomInfection(int _minPeriodSymptomInfection)
_minPeriodSymptomInfection
- the new Min Period Symptom Infection value
public int getMaxPeriodSymptomInfection()
public void setMaxPeriodSymptomInfection(int _maxPeriodSymptomInfection)
_maxPeriodSymptomInfection
- the new Max Period Symptom Infection value
public double getMovementProbability()
public void setMovementProbability(double _movementProbability)
_movementProbability
- the new Movement Probability value
public double getMigrationProbability()
public void setMigrationProbability(double _migrationProbability)
_migrationProbability
- the new Migration Probability value
public int getRegionalLocationCount()
public void setRegionalLocationCount(int _regionalLocationCount)
_regionalLocationCount
- the new Regional Location Count value
public boolean isInitialCityAssigned()
public void setInitialCityAssigned(boolean _initialCityAssigned)
_initialCityAssigned
- the new Initial City Assigned value
public int[] getRegionalMapDimensions()
public void setRegionalMapDimensions(int[] _regionalMapDimensions)
_regionalMapDimensions
- the new Dimensions value
public int getRegionalMapWidth()
public void setRegionalMapWidth(int _regionalMapWidth)
_regionalMapWidth
- the new Width value
public int getRegionalMapHeight()
public void setRegionalMapHeight(int _regionalMapHeight)
_regionalMapHeight
- the new Height value
public Scape getRegionalMap()
public void setRegionalMap(Scape _regionalMap)
_regionalMap
- the new Regional Map value
public java.lang.String getName()
getName
in interface SpaceContext
getName
in interface HasName
getName
in class Scape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |