org.jscience.sociology
Class Situation

java.lang.Object
  extended by org.jscience.sociology.Situation
All Implemented Interfaces:
Commented, Named
Direct Known Subclasses:
ChatSituation, CivilSituation, EconomicSituation, Experiment, Ritual, StreetSituation, VoteSituation

public class Situation
extends java.lang.Object
implements Named, Commented

A class representing the interaction of people around a common activity or conflict. Situations happen usually at dedicated places.


Constructor Summary
Situation(java.lang.String name, java.lang.String comments)
          Creates a new Situation object.
 
Method Summary
 void addRole(Individual individual, java.lang.String name, int kind)
          DOCUMENT ME!
 void addRole(Role role)
          DOCUMENT ME!
 java.lang.String getComments()
          DOCUMENT ME!
 java.util.Set getIndividuals()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.util.Set getRoles()
          DOCUMENT ME!
 void removeRole(Role role)
          DOCUMENT ME!
 void setRoles(java.util.Set roles)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Situation

public Situation(java.lang.String name,
                 java.lang.String comments)
Creates a new Situation object.

Parameters:
name - DOCUMENT ME!
comments - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getComments

public java.lang.String getComments()
DOCUMENT ME!

Specified by:
getComments in interface Commented
Returns:
DOCUMENT ME!

getIndividuals

public java.util.Set getIndividuals()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addRole

public void addRole(Individual individual,
                    java.lang.String name,
                    int kind)
DOCUMENT ME!

Parameters:
individual - DOCUMENT ME!
name - DOCUMENT ME!
kind - DOCUMENT ME!

addRole

public void addRole(Role role)
DOCUMENT ME!

Parameters:
role - DOCUMENT ME!

removeRole

public void removeRole(Role role)
DOCUMENT ME!

Parameters:
role - DOCUMENT ME!

setRoles

public void setRoles(java.util.Set roles)
DOCUMENT ME!

Parameters:
roles - DOCUMENT ME!

getRoles

public java.util.Set getRoles()
DOCUMENT ME!

Returns:
DOCUMENT ME!