Package ons

Class FlowArrivalEvent

java.lang.Object
ons.Event
ons.FlowArrivalEvent

public class FlowArrivalEvent
extends Event
Methods to treat the incoming of a Flow object.
  • Constructor Summary

    Constructors 
    Constructor Description
    FlowArrivalEvent​(Flow flow)
    Creates a new FlowArrivalEvent object.
  • Method Summary

    Modifier and Type Method Description
    Flow getFlow()
    Retrives the flow attribute of the FlowArrivalEvent object.
    java.lang.String toString()
    Prints all information related to the arriving flow.

    Methods inherited from class ons.Event

    getTime, setTime

    Methods inherited from class java.lang.Object

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

    • FlowArrivalEvent

      public FlowArrivalEvent​(Flow flow)
      Creates a new FlowArrivalEvent object.
      Parameters:
      flow - the arriving flow
  • Method Details

    • getFlow

      public Flow getFlow()
      Retrives the flow attribute of the FlowArrivalEvent object.
      Returns:
      the FlowArrivalEvent's flow attribute
    • toString

      public java.lang.String toString()
      Prints all information related to the arriving flow.
      Overrides:
      toString in class java.lang.Object
      Returns:
      string containing all the values of the flow's parameters