sir.sim
Class SimSelke.Event

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

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

A class to handle events


Field Summary
 char type
          Event type
 SimSelke.Individual who
          Location of the event, i.e. the individual
 
Constructor Summary
SimSelke.Event(SimSelke.Individual who, double t, char type)
          Ordinary constructur
 
Method Summary
 int compareTo(java.lang.Object other)
          Comparing based on the event time
 java.lang.String toStringLong(double r0)
          Just show it on the screen
 java.lang.String toStringShort(double r0)
          Format relative to r0 - especially for logfiles and no type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

who

public SimSelke.Individual who
Location of the event, i.e. the individual


type

public char type
Event type

Constructor Detail

SimSelke.Event

public SimSelke.Event(SimSelke.Individual who,
                      double t,
                      char type)
Ordinary constructur

Method Detail

compareTo

public int compareTo(java.lang.Object other)
Comparing based on the event time

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

toStringLong

public java.lang.String toStringLong(double r0)
Just show it on the screen


toStringShort

public java.lang.String toStringShort(double r0)
Format relative to r0 - especially for logfiles and no type