|
||||||||||
| 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.metaabm.gen.test.BasicMovementModel
public class BasicMovementModel
| 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 | |
|---|---|
BasicMovementModel()
Constructs a new Basic Movement Model. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones the agent, ensuring that a unique id is assigned. |
void |
createGraphicViews()
Creates UI views for Basic Movement Model. |
void |
createScape()
Creates the members of Basic Movement Model. |
void |
createUniqueID()
|
void |
dummy()
|
int |
getActNonMovementPersonCount()
Gets the Act Non Movement Person Count property for Basic Movement Model. |
int |
getAreaCount()
Gets the Area Count property for Basic Movement Model. |
Scape |
getBasicCell()
Gets the Basic Cell property for Basic Movement Model. |
Scape |
getBasicMovementAgent()
Gets the Basic Movement Agent property for Basic Movement Model. |
int |
getBasicMovementAgentCount()
Gets the Basic Movement Agent Count property for Basic Movement Model. |
Scape |
getBasicMovementStateAgent()
Gets the Basic Movement State Agent property for Basic Movement Model. |
int |
getBasicMovementStateAgentCount()
Gets the Basic Movement State Agent Count property for Basic Movement Model. |
java.awt.Color |
getColor()
This agent's default color, used by many simple views. |
int |
getComplexSpaceAgentCount()
Gets the Complex Space Agent Count property for Basic Movement Model. |
Scape |
getGrid()
Gets the Grid property for Basic Movement Model. |
int[] |
getGridDimensions()
Gets the Dimensions property for Grid. |
int |
getGridHeight()
Gets the Height property for Grid. |
int |
getGridWidth()
Gets the Width property for Grid. |
java.lang.String |
getName()
Returns the name of this scape, the model name if this is root and there is no name set. |
Scape |
getNetworkAgent()
Gets the Network Agent property for Basic Movement Model. |
int |
getNetworkAgentCount()
Gets the Network Agent Count property for Basic Movement Model. |
Scape |
getTestNetwork()
Gets the Test Network property for Basic Movement Model. |
java.lang.String |
getUID()
|
static void |
main(java.lang.String[] args)
|
void |
scapeSetup(ScapeEvent scapeEvent)
If the scape has delegated a view to itself, called each time a scape sends a "setup" method, indicating it needs to be setup for a run. |
void |
setActNonMovementPersonCount(int _actNonMovementPersonCount)
Sets the Act Non Movement Person Count property for Basic Movement Model. |
void |
setAreaCount(int _areaCount)
Sets the Area Count property for Basic Movement Model. |
void |
setBasicCell(Scape _basicCell)
Sets the Basic Cell property for Basic Movement Model. |
void |
setBasicMovementAgent(Scape _basicMovementAgent)
Sets the Basic Movement Agent property for Basic Movement Model. |
void |
setBasicMovementAgentCount(int _basicMovementAgentCount)
Sets the Basic Movement Agent Count property for Basic Movement Model. |
void |
setBasicMovementStateAgent(Scape _basicMovementStateAgent)
Sets the Basic Movement State Agent property for Basic Movement Model. |
void |
setBasicMovementStateAgentCount(int _basicMovementStateAgentCount)
Sets the Basic Movement State Agent Count property for Basic Movement Model. |
void |
setComplexSpaceAgentCount(int _complexSpaceAgentCount)
Sets the Complex Space Agent Count property for Basic Movement Model. |
void |
setGrid(Scape _grid)
Sets the Grid property for Basic Movement Model. |
void |
setGridDimensions(int[] _gridDimensions)
Sets the Dimensions property for Grid. |
void |
setGridHeight(int _gridHeight)
Sets the Height property for Grid. |
void |
setGridWidth(int _gridWidth)
Sets the Width property for Grid. |
void |
setNetworkAgent(Scape _networkAgent)
Sets the Network Agent property for Basic Movement Model. |
void |
setNetworkAgentCount(int _networkAgentCount)
Sets the Network Agent Count property for Basic Movement Model. |
void |
setTestNetwork(Scape _testNetwork)
Sets the Test Network property for Basic Movement Model. |
void |
testFake()
. |
| 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, 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 BasicMovementModel()
| Method Detail |
|---|
public java.lang.String getUID()
public void createUniqueID()
public java.lang.Object clone()
clone in interface ScapeListenerclone in interface Locationclone in class Scapepublic void dummy()
public Scape getBasicMovementAgent()
public void setBasicMovementAgent(Scape _basicMovementAgent)
_basicMovementAgent - the new Basic Movement Agent valuepublic Scape getBasicCell()
public void setBasicCell(Scape _basicCell)
_basicCell - the new Basic Cell valuepublic Scape getNetworkAgent()
public void setNetworkAgent(Scape _networkAgent)
_networkAgent - the new Network Agent valuepublic Scape getBasicMovementStateAgent()
public void setBasicMovementStateAgent(Scape _basicMovementStateAgent)
_basicMovementStateAgent - the new Basic Movement State Agent valuepublic void createScape()
createScape in class ScapeScape.setPopulateOnCreate(boolean)public void createGraphicViews()
createGraphicViews in class Scapepublic void scapeSetup(ScapeEvent scapeEvent)
Scape
scapeSetup in interface ScapeListenerscapeSetup in class ScapescapeEvent - the associated scape eventpublic static void main(java.lang.String[] args)
public java.awt.Color getColor()
Agent
getColor in class Agentpublic void testFake()
public int getAreaCount()
public void setAreaCount(int _areaCount)
_areaCount - the new Area Count valuepublic int getNetworkAgentCount()
public void setNetworkAgentCount(int _networkAgentCount)
_networkAgentCount - the new Network Agent Count valuepublic int getBasicMovementAgentCount()
public void setBasicMovementAgentCount(int _basicMovementAgentCount)
_basicMovementAgentCount - the new Basic Movement Agent Count valuepublic int getComplexSpaceAgentCount()
public void setComplexSpaceAgentCount(int _complexSpaceAgentCount)
_complexSpaceAgentCount - the new Complex Space Agent Count valuepublic int getActNonMovementPersonCount()
public void setActNonMovementPersonCount(int _actNonMovementPersonCount)
_actNonMovementPersonCount - the new Act Non Movement Person Count valuepublic int getBasicMovementStateAgentCount()
public void setBasicMovementStateAgentCount(int _basicMovementStateAgentCount)
_basicMovementStateAgentCount - the new Basic Movement State Agent Count valuepublic int[] getGridDimensions()
public void setGridDimensions(int[] _gridDimensions)
_gridDimensions - the new Dimensions valuepublic int getGridWidth()
public void setGridWidth(int _gridWidth)
_gridWidth - the new Width valuepublic int getGridHeight()
public void setGridHeight(int _gridHeight)
_gridHeight - the new Height valuepublic Scape getGrid()
public void setGrid(Scape _grid)
_grid - the new Grid valuepublic Scape getTestNetwork()
public void setTestNetwork(Scape _testNetwork)
_testNetwork - the new Test Network valuepublic java.lang.String getName()
Scape
getName in interface SpaceContextgetName in interface HasNamegetName in class Scape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||