Class SocialEntity
java.lang.Object
org.episteme.natural.biology.SocialEntity
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, SimulationAgent
- Direct Known Subclasses:
Individual, SocialCollective
public abstract class SocialEntity
extends Object
implements ComprehensiveIdentification, SimulationAgent
Base class for all social entities (individuals or collectives).
Implements traits common to social science modeling such as prestige and influence.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventDrivenEngineprotected final Identificationprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the unique identifier of this entity.doubledoublegetSimId()Returns the unique identifier of the agent in the simulation.Returns the traits map for this entity.voidHelper method to interact with another agent by sending an event.abstract voidprocessEvent(Event event) Process an event delivered to this agent.voidsetEngine(EventDrivenEngine engine) voidsetInfluence(double influence) voidsetPrestige(double prestige) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Field Details
-
id
-
traits
-
prestige
protected double prestige -
influence
protected double influence -
engine
-
-
Constructor Details
-
SocialEntity
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getSimId
Description copied from interface:SimulationAgentReturns the unique identifier of the agent in the simulation.- Specified by:
getSimIdin interfaceSimulationAgent
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getPrestige
public double getPrestige() -
setPrestige
public void setPrestige(double prestige) -
getInfluence
public double getInfluence() -
setInfluence
public void setInfluence(double influence) -
getEngine
-
setEngine
-
interact
-
processEvent
Description copied from interface:SimulationAgentProcess an event delivered to this agent.- Specified by:
processEventin interfaceSimulationAgent- Parameters:
event- The event to process
-