|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.sociology.Role
public class Role
A class representing the current behavior/relation a Person has with its environment. Usually in pairs, for example client (student, customer, patient...) and server (teacher, waiter, doctor...) or triplets client, server and supervisor (administrator, manager...). There is sometimes another role which is not part of the process itself: the observer (narrator, passive audience...). Several other roles may be considered although you should try to fit them in the above categories when possible: mediator, slave... Think for example about all the roles of the individual that are in a theater: producer, director, actors, technicians, public... You may want not to assign the default roles but reproduce a more complex environment although you may not apply some models on them.
| Field Summary | |
|---|---|
static int |
CLIENT
DOCUMENT ME! |
static int |
OBSERVER
DOCUMENT ME! |
static int |
SERVER
DOCUMENT ME! |
static int |
SUPERVISOR
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Role(Individual individual,
java.lang.String name,
Situation situation,
int kind)
Creates a new Role object. |
|
Role(java.lang.String name,
int kind)
Creates a new Role object. |
|
| Method Summary | |
|---|---|
Individual |
getIndividual()
DOCUMENT ME! |
int |
getKind()
DOCUMENT ME! |
java.lang.String |
getName()
DOCUMENT ME! |
Situation |
getSituation()
DOCUMENT ME! |
protected void |
setSituation(Situation situation)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CLIENT
public static final int SERVER
public static final int SUPERVISOR
public static final int OBSERVER
| Constructor Detail |
|---|
public Role(Individual individual,
java.lang.String name,
Situation situation,
int kind)
individual - DOCUMENT ME!name - DOCUMENT ME!situation - DOCUMENT ME!kind - DOCUMENT ME!
public Role(java.lang.String name,
int kind)
name - DOCUMENT ME!kind - DOCUMENT ME!| Method Detail |
|---|
public Individual getIndividual()
public java.lang.String getName()
getName in interface Namedpublic Situation getSituation()
protected void setSituation(Situation situation)
situation - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public int getKind()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||