uaa.feral.social
Class Community

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<Person>
                  extended by 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:

Field Summary
 
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
 
Method Summary
 DemographicFunctions getDemographicFunction()
           
 gov.nasa.worldwind.render.UserFacingIcon getIcon()
           
 double getImportance()
           
 LeadershipModel getLeadershipModel()
           
 com.vividsolutions.jts.geom.Point getLocation()
           
 HydrologicalUnit getMunicipalSupply()
           
 repast.simphony.visualization.gis3D.SphereShape getShape()
           
 WaterUseModel getWaterUseModel()
           
 void init()
          Method to initialize parameters, behaviors, and call visualization initialization
 void managePopulation()
          Method manages a population using the demographic behaviors created
 void runDemographics()
          Method to run demographics
 void runModels()
          Method to run the water use and/or leadership model(s)
 void setDemographicFunction(DemographicFunctions demographicFunction)
           
 void setIcon(gov.nasa.worldwind.render.UserFacingIcon icon)
           
 void setImportance(double importance)
           
 void setLeadershipModel(LeadershipModel leadershipModel)
           
 void setLocation(com.vividsolutions.jts.geom.Point location)
           
 void setMunicipalSupply(HydrologicalUnit municipalSupply)
           
 void setWaterUseModel(WaterUseModel waterUseModel)
           
 
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
 

Constructor Detail

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 id
location - the community's location
Method Detail

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)