Class SocialCollective<T extends Individual>
java.lang.Object
org.episteme.natural.biology.SocialEntity
org.episteme.natural.biology.SocialCollective<T>
- Type Parameters:
T- The type of individuals in the collective.
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, SimulationAgent
- Direct Known Subclasses:
Population
Represents a collective of biological or social agents (individuals or subgroups).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleSocial cohesion or biological group integration level.protected T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoublevoidremoveMember(T individual) voidsetCohesion(double cohesion) voidintsize()Methods inherited from class SocialEntity
getEngine, getId, getInfluence, getPrestige, getSimId, getTraits, interact, processEvent, setEngine, setInfluence, setPrestigeMethods 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
-
members
-
leader
-
cohesion
protected double cohesionSocial cohesion or biological group integration level.
-
-
Constructor Details
-
SocialCollective
-
-
Method Details
-
getMembers
-
addMember
-
removeMember
-
getLeader
-
setLeader
-
getCohesion
public double getCohesion() -
setCohesion
public void setCohesion(double cohesion) -
size
public int size()
-