sir.sim
Class SimSelke.Individual

java.lang.Object
  |
  +--sir.sim.SimSelke.Individual
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
SimSelke

public class SimSelke.Individual
extends java.lang.Object
implements java.lang.Comparable

Class to handle each individual in the population.


Field Summary
 double incubtime
          Individuals length of incubation period
 double inflength
          Individuals infection length, if infected
 double threshold
          The individual's threshold beforing becoming exposed
 int x
          Location of the individual
 int y
          Location of the individual
 
Constructor Summary
SimSelke.Individual(int x, int y)
          Constructor
 
Method Summary
 int compareTo(java.lang.Object other)
          Comparing based on the individuals threshold
 java.lang.String toString()
          Typical debug method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x
Location of the individual


y

public int y
Location of the individual


inflength

public double inflength
Individuals infection length, if infected


incubtime

public double incubtime
Individuals length of incubation period


threshold

public double threshold
The individual's threshold beforing becoming exposed

Constructor Detail

SimSelke.Individual

public SimSelke.Individual(int x,
                           int y)
Constructor

Method Detail

compareTo

public int compareTo(java.lang.Object other)
Comparing based on the individuals threshold

Specified by:
compareTo in interface java.lang.Comparable
Returns:
-1,0,1 if o1 is less than, equal to, or greater than o2

toString

public java.lang.String toString()
Typical debug method

Overrides:
toString in class java.lang.Object