sir.sim
Class SimSellke.Event

java.lang.Object
  extended bysir.sim.SimSellke.Event
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
SimSellke

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

A class to handle events


Field Summary
 char type
          Event type
 SimSellke.Individual who
          Location of the event, i.e. the individual
 
Constructor Summary
SimSellke.Event(SimSellke.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 toString()
          Standard toString nothing fancy here.
 java.lang.String toString(double origoTime)
          Just show it on the screen, pos, time (corrected for origoTime) and type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

who

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


type

public char type
Event type

Constructor Detail

SimSellke.Event

public SimSellke.Event(SimSellke.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

toString

public java.lang.String toString(double origoTime)
Just show it on the screen, pos, time (corrected for origoTime) and type


toString

public java.lang.String toString()
Standard toString nothing fancy here.