Package ons

Class Event

java.lang.Object
ons.Event
Direct Known Subclasses:
BatchArrivalEvent, BatchDepartureEvent, BulkDataArrivalEvent, BulkDepartureEvent, FlowArrivalEvent, FlowDepartureEvent, OrdinaryEvent

public abstract class Event
extends java.lang.Object
Event objects have only one attribute: scheduled time. It is the time slot the event is set to happen.
  • Constructor Summary

    Constructors 
    Constructor Description
    Event()  
  • Method Summary

    Modifier and Type Method Description
    double getTime()
    Retrieves current scheduled time for a given Event.
    void setTime​(double time)
    Sets a new time for the Event to happen.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setTime

      public void setTime​(double time)
      Sets a new time for the Event to happen.
      Parameters:
      time - new scheduled period
    • getTime

      public double getTime()
      Retrieves current scheduled time for a given Event.
      Returns:
      value of the Event's time attribute