org.metaabm.gen.test
Class BasicMovementModel

java.lang.Object
  extended by java.util.AbstractCollection<T>
      extended by repast.simphony.context.AbstractContext<T>
          extended by repast.simphony.context.SmallDefaultContext<T>
              extended by repast.simphony.context.DefaultContext
                  extended by org.metaabm.gen.test.BasicMovementModel
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, IBasicMovementModel, repast.simphony.context.Context, repast.simphony.context.ContextListener, repast.simphony.context.RepastElement, repast.simphony.dataLoader.ContextBuilder

public class BasicMovementModel
extends repast.simphony.context.DefaultContext
implements repast.simphony.dataLoader.ContextBuilder, IBasicMovementModel

Basic Movement Model Java Implementation. Most recent version. Generated by metaabm system: Apr 14, 2008 2:35:49 AM EDT in project: org.metaabm.gen.repast.test (testing)


Field Summary
 
Fields inherited from class repast.simphony.context.SmallDefaultContext
allObjs, objectMap
 
Fields inherited from class repast.simphony.context.AbstractContext
subContexts
 
Constructor Summary
BasicMovementModel()
          Constructs a new Basic Movement Model.
 
Method Summary
 repast.simphony.context.Context build(repast.simphony.context.Context context)
          Builds and returns a context based on MetaABM generation for repast.simphony.
 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.
 int getBasicMovementAgentCount()
          Gets the Basic Movement Agent Count property for Basic Movement Model.
 int getBasicMovementStateAgentCount()
          Gets the Basic Movement State Agent Count property for Basic Movement Model.
 int getComplexSpaceAgentCount()
          Gets the Complex Space Agent Count property for Basic Movement Model.
 repast.simphony.space.grid.Grid 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.
 int getNetworkAgentCount()
          Gets the Network Agent Count property for Basic Movement Model.
 repast.simphony.space.graph.Network getTestNetwork()
          Gets the Test Network property for Basic Movement Model.
 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 setBasicMovementAgentCount(int _basicMovementAgentCount)
          Sets the Basic Movement Agent Count 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(repast.simphony.space.grid.Grid _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 setNetworkAgentCount(int _networkAgentCount)
          Sets the Network Agent Count property for Basic Movement Model.
 void setTestNetwork(repast.simphony.space.graph.Network _testNetwork)
          Sets the Test Network property for Basic Movement Model.
 void testFake()
          .
 
Methods inherited from class repast.simphony.context.DefaultContext
addInternal, containsInternal, iteratorInternal, removeInternal, sizeInternal
 
Methods inherited from class repast.simphony.context.SmallDefaultContext
getObjects, getRandomObject, getRandomObjects
 
Methods inherited from class repast.simphony.context.AbstractContext
add, addContextListener, addProjection, addSubContext, addValueLayer, clear, contains, eventOccured, findContext, findParent, fireAddContextEvent, fireRemoveEvent, fireSubContextAdded, fireSubContextRemoved, getAgentLayer, getAgentTypes, getContextListeners, getId, getProjection, getProjection, getProjections, getProjections, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, handleRemove, iterator, query, remove, removeContextListener, removeProjection, removeSubContext, removeValueLayer, setId, setTypeID, size
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

BasicMovementModel

public BasicMovementModel()
Constructs a new Basic Movement Model.

Method Detail

build

public repast.simphony.context.Context build(repast.simphony.context.Context context)
Builds and returns a context based on MetaABM generation for repast.simphony. Building a context consists of filling it with agents, adding projects and so forth. When this is called for the master context the system will pass in a created context based on information given in the model.score file. When called for subcontexts, each subcontext that was added when the master context was built will be passed in.

Specified by:
build in interface repast.simphony.dataLoader.ContextBuilder
Parameters:
context -
Returns:
the built context.

testFake

public void testFake()
.

Specified by:
testFake in interface IBasicMovementModel

getAreaCount

public int getAreaCount()
Gets the Area Count property for Basic Movement Model.

Specified by:
getAreaCount in interface IBasicMovementModel
Returns:
The number of areas to create.

setAreaCount

public void setAreaCount(int _areaCount)
Sets the Area Count property for Basic Movement Model. The number of areas to create.

Specified by:
setAreaCount in interface IBasicMovementModel
Parameters:
_areaCount - the new Area Count value

getNetworkAgentCount

public int getNetworkAgentCount()
Gets the Network Agent Count property for Basic Movement Model.

Specified by:
getNetworkAgentCount in interface IBasicMovementModel
Returns:
The number of network agents to create.

setNetworkAgentCount

public void setNetworkAgentCount(int _networkAgentCount)
Sets the Network Agent Count property for Basic Movement Model. The number of network agents to create.

Specified by:
setNetworkAgentCount in interface IBasicMovementModel
Parameters:
_networkAgentCount - the new Network Agent Count value

getBasicMovementAgentCount

public int getBasicMovementAgentCount()
Gets the Basic Movement Agent Count property for Basic Movement Model.

Specified by:
getBasicMovementAgentCount in interface IBasicMovementModel
Returns:
The number of generate act people to create.

setBasicMovementAgentCount

public void setBasicMovementAgentCount(int _basicMovementAgentCount)
Sets the Basic Movement Agent Count property for Basic Movement Model. The number of generate act people to create.

Specified by:
setBasicMovementAgentCount in interface IBasicMovementModel
Parameters:
_basicMovementAgentCount - the new Basic Movement Agent Count value

getComplexSpaceAgentCount

public int getComplexSpaceAgentCount()
Gets the Complex Space Agent Count property for Basic Movement Model.

Specified by:
getComplexSpaceAgentCount in interface IBasicMovementModel
Returns:
The number of complex space agents to create.

setComplexSpaceAgentCount

public void setComplexSpaceAgentCount(int _complexSpaceAgentCount)
Sets the Complex Space Agent Count property for Basic Movement Model. The number of complex space agents to create.

Specified by:
setComplexSpaceAgentCount in interface IBasicMovementModel
Parameters:
_complexSpaceAgentCount - the new Complex Space Agent Count value

getActNonMovementPersonCount

public int getActNonMovementPersonCount()
Gets the Act Non Movement Person Count property for Basic Movement Model.

Specified by:
getActNonMovementPersonCount in interface IBasicMovementModel
Returns:
The number of act non movement persons to create.

setActNonMovementPersonCount

public void setActNonMovementPersonCount(int _actNonMovementPersonCount)
Sets the Act Non Movement Person Count property for Basic Movement Model. The number of act non movement persons to create.

Specified by:
setActNonMovementPersonCount in interface IBasicMovementModel
Parameters:
_actNonMovementPersonCount - the new Act Non Movement Person Count value

getBasicMovementStateAgentCount

public int getBasicMovementStateAgentCount()
Gets the Basic Movement State Agent Count property for Basic Movement Model.

Specified by:
getBasicMovementStateAgentCount in interface IBasicMovementModel
Returns:
The number of basic movement state agents to create.

setBasicMovementStateAgentCount

public void setBasicMovementStateAgentCount(int _basicMovementStateAgentCount)
Sets the Basic Movement State Agent Count property for Basic Movement Model. The number of basic movement state agents to create.

Specified by:
setBasicMovementStateAgentCount in interface IBasicMovementModel
Parameters:
_basicMovementStateAgentCount - the new Basic Movement State Agent Count value

getGridDimensions

public int[] getGridDimensions()
Gets the Dimensions property for Grid.

Returns:
The size of each dimension.

setGridDimensions

public void setGridDimensions(int[] _gridDimensions)
Sets the Dimensions property for Grid. The size of each dimension.

Parameters:
_gridDimensions - the new Dimensions value

getGridWidth

public int getGridWidth()
Gets the Width property for Grid.

Returns:
The horizontal extent of the space.

setGridWidth

public void setGridWidth(int _gridWidth)
Sets the Width property for Grid. The horizontal extent of the space.

Parameters:
_gridWidth - the new Width value

getGridHeight

public int getGridHeight()
Gets the Height property for Grid.

Returns:
The vertical extent of the space.

setGridHeight

public void setGridHeight(int _gridHeight)
Sets the Height property for Grid. The vertical extent of the space.

Parameters:
_gridHeight - the new Height value

getGrid

public repast.simphony.space.grid.Grid getGrid()
Gets the Grid property for Basic Movement Model.

Returns:

setGrid

public void setGrid(repast.simphony.space.grid.Grid _grid)
Sets the Grid property for Basic Movement Model.

Parameters:
_grid - the new Grid value

getTestNetwork

public repast.simphony.space.graph.Network getTestNetwork()
Gets the Test Network property for Basic Movement Model.

Returns:

setTestNetwork

public void setTestNetwork(repast.simphony.space.graph.Network _testNetwork)
Sets the Test Network property for Basic Movement Model.

Parameters:
_testNetwork - the new Test Network value