uaa.feral.social
Class Community
java.lang.Object
java.util.AbstractCollection<T>
repast.simphony.context.AbstractContext<T>
repast.simphony.context.SmallDefaultContext<T>
repast.simphony.context.DefaultContext<Person>
uaa.feral.social.Community
- Type Parameters:
Person
-
- All Implemented Interfaces:
- java.lang.Iterable<Person>, java.util.Collection<Person>, repast.simphony.context.Context<Person>, repast.simphony.context.ContextListener, repast.simphony.context.RepastElement
- Direct Known Subclasses:
- Organization
public class Community
- extends repast.simphony.context.DefaultContext<Person>
Community object that contains person agents.
The community does display agent behavior, in addition to containing person agents
- Author:
Fields inherited from interface repast.simphony.context.Context |
SYN_CONTEXT_PREFIX |
Constructor Summary |
Community()
|
Community(java.lang.String id,
com.vividsolutions.jts.geom.Point location)
Main constructor used to create a community |
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, getAgentLayer, getAgentTypes, getContextListeners, getId, getProjection, getProjection, getProjections, getProjections, getSubContext, getSubContexts, getTypeID, getValueLayer, getValueLayers, hasSubContext, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Community
public Community()
Community
public Community(java.lang.String id,
com.vividsolutions.jts.geom.Point location)
- Main constructor used to create a community
- Parameters:
id
- the community's idlocation
- the community's location
getImportance
public double getImportance()
setImportance
public void setImportance(double importance)
getMunicipalSupply
public HydrologicalUnit getMunicipalSupply()
getLocation
public com.vividsolutions.jts.geom.Point getLocation()
setLocation
public void setLocation(com.vividsolutions.jts.geom.Point location)
setMunicipalSupply
public void setMunicipalSupply(HydrologicalUnit municipalSupply)
init
public void init()
- Method to initialize parameters, behaviors, and call visualization initialization
runModels
public void runModels()
- Method to run the water use and/or leadership model(s)
runDemographics
public void runDemographics()
- Method to run demographics
managePopulation
public void managePopulation()
- Method manages a population using the demographic behaviors created
getWaterUseModel
public WaterUseModel getWaterUseModel()
setWaterUseModel
public void setWaterUseModel(WaterUseModel waterUseModel)
getDemographicFunction
public DemographicFunctions getDemographicFunction()
setDemographicFunction
public void setDemographicFunction(DemographicFunctions demographicFunction)
getShape
public repast.simphony.visualization.gis3D.SphereShape getShape()
getIcon
public gov.nasa.worldwind.render.UserFacingIcon getIcon()
setIcon
public void setIcon(gov.nasa.worldwind.render.UserFacingIcon icon)
getLeadershipModel
public LeadershipModel getLeadershipModel()
setLeadershipModel
public void setLeadershipModel(LeadershipModel leadershipModel)