|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsir.sim.SimSellke.Individual
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 |
serotime
Time from exposure to seroconversion |
double |
threshold
The individual's threshold before becoming exposed |
int |
x
Location of the individual |
int |
y
Location of the individual |
Constructor Summary | |
SimSellke.Individual(int x,
int y)
Constructor |
Method Summary | |
int |
compareTo(java.lang.Object other)
Comparing based on the individuals threshold |
SimSellke.Event |
findEvent(char eventType)
Return the eventType event for the individual. |
java.lang.String |
toString(double origoTime)
Method to write all event times of an individual to the log file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int x
public int y
public double inflength
public double incubtime
public double serotime
public double threshold
Constructor Detail |
public SimSellke.Individual(int x, int y)
Method Detail |
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public SimSellke.Event findEvent(char eventType)
eventType
- The eventype to search for: I, R, Spublic java.lang.String toString(double origoTime)
origoTime
- Time to correct all event times for.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |