cz.zcu.fav.kiv.cs
Class CSCalendarEvent

java.lang.Object
  extended bycz.zcu.fav.kiv.cs.CSCalendarEvent
All Implemented Interfaces:
java.lang.Comparable

public class CSCalendarEvent
extends java.lang.Object
implements java.lang.Comparable

Describes the event of CSProcess in calendar.

Version:
2.0
Author:
Antonin Kunes

Field Summary
private  int fromWho
          Who has scheduled this event.
private  int ID
          What process should run.
private  java.lang.String message
          With what message.
private  double time
          At what time.
 
Constructor Summary
CSCalendarEvent(double time, int ID, java.lang.String message, int fromWho)
          Creates a new event of the specified process.
 
Method Summary
 int compareTo(java.lang.Object o)
          Used for sorting of the calendar.
 int getFromWho()
           
 int getID()
           
 java.lang.String getMessage()
           
 double getTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

private final int ID
What process should run.


message

private final java.lang.String message
With what message.


time

private final double time
At what time.


fromWho

private final int fromWho
Who has scheduled this event.

Constructor Detail

CSCalendarEvent

public CSCalendarEvent(double time,
                       int ID,
                       java.lang.String message,
                       int fromWho)
Creates a new event of the specified process.

Method Detail

getID

public int getID()

getMessage

public java.lang.String getMessage()

getTime

public double getTime()

getFromWho

public int getFromWho()

compareTo

public int compareTo(java.lang.Object o)
Used for sorting of the calendar.

Specified by:
compareTo in interface java.lang.Comparable