org.jscience.psychology.experimental
Class Subject

java.lang.Object
  extended by org.jscience.sociology.Role
      extended by org.jscience.psychology.experimental.Subject
All Implemented Interfaces:
Named

public class Subject
extends Role

A class representing an animal or human subject that takes part in an experiment.


Field Summary
static int INVALID
          DOCUMENT ME!
static int READY
          DOCUMENT ME!
static int VALID
          DOCUMENT ME!
 
Fields inherited from class org.jscience.sociology.Role
CLIENT, OBSERVER, SERVER, SUPERVISOR
 
Constructor Summary
Subject(Individual individual, Experiment experiment, java.util.Vector tasks)
          Creates a new Subject object.
 
Method Summary
 void addValuedVariable(ValuedVariable valuedVariable)
          DOCUMENT ME!
 void addValuedVariables(java.util.Vector valuedVariables)
          DOCUMENT ME!
 java.util.Set getAllValuedVariables()
          DOCUMENT ME!
 java.lang.String getIdentifier()
          DOCUMENT ME!
 int getState()
          DOCUMENT ME!
 java.util.Vector getTasks()
          DOCUMENT ME!
 boolean isValid()
          DOCUMENT ME!
 void setState(int state)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.sociology.Role
getIndividual, getKind, getName, getSituation, setSituation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READY

public static final int READY
DOCUMENT ME!

See Also:
Constant Field Values

INVALID

public static final int INVALID
DOCUMENT ME!

See Also:
Constant Field Values

VALID

public static final int VALID
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Subject

public Subject(Individual individual,
               Experiment experiment,
               java.util.Vector tasks)
Creates a new Subject object.

Parameters:
individual - DOCUMENT ME!
experiment - DOCUMENT ME!
tasks - DOCUMENT ME!
Method Detail

getIdentifier

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

Returns:
DOCUMENT ME!

getState

public int getState()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setState

public void setState(int state)
DOCUMENT ME!

Parameters:
state - DOCUMENT ME!

isValid

public boolean isValid()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTasks

public java.util.Vector getTasks()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addValuedVariable

public void addValuedVariable(ValuedVariable valuedVariable)
DOCUMENT ME!

Parameters:
valuedVariable - DOCUMENT ME!

addValuedVariables

public void addValuedVariables(java.util.Vector valuedVariables)
DOCUMENT ME!

Parameters:
valuedVariables - DOCUMENT ME!

getAllValuedVariables

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

Returns:
DOCUMENT ME!