Class NetEvent

java.lang.Object
QueueNet.NetEvent

public class NetEvent extends Object
This class declares all the constants related to message event types.
Author:
Francesco Radaelli
  • Field Details

    • EVENT_MASK

      public static final int EVENT_MASK
      See Also:
    • EVENT_ABORT

      public static final int EVENT_ABORT
      Event ID: Aborts the simulation.
      See Also:
    • EVENT_STOP

      public static final int EVENT_STOP
      Event ID: Stops the simulation.
      See Also:
    • EVENT_START

      public static final int EVENT_START
      Event ID: Starts the simulation.
      See Also:
    • EVENT_JOB

      public static final int EVENT_JOB
      Event ID: The event contains a job.
      See Also:
    • EVENT_ACK

      public static final int EVENT_ACK
      Event ID: Job ack event.
      See Also:
    • EVENT_PREEMPTED_JOB

      public static final int EVENT_PREEMPTED_JOB
      Event ID: Job was preempted in service event.
      See Also:
    • EVENT_KEEP_AWAKE

      public static final int EVENT_KEEP_AWAKE
      Event ID: Keeps node awake.
      See Also:
    • EVENT_JOIN

      public static final int EVENT_JOIN
      Event ID: Join ack event.
      See Also:
    • EVENT_JOB_OUT_OF_REGION

      public static final int EVENT_JOB_OUT_OF_REGION
      Event ID: Job out of region event.
      See Also:
    • EVENT_DISTRIBUTION_CHANGE

      public static final int EVENT_DISTRIBUTION_CHANGE
      Event ID: Distribution change event.
      See Also:
    • EVENT_JOB_CHANGE

      public static final int EVENT_JOB_CHANGE
      Event ID: Job change event.
      See Also:
    • EVENT_ENABLING

      public static final int EVENT_ENABLING
      Event ID: Enabling event.
      See Also:
    • EVENT_TIMING

      public static final int EVENT_TIMING
      Event ID: Timing event.
      See Also:
    • EVENT_FIRING

      public static final int EVENT_FIRING
      Event ID: Firing event.
      See Also:
    • EVENT_JOB_REQUEST

      public static final int EVENT_JOB_REQUEST
      Event ID: Job request event.
      See Also:
    • EVENT_JOB_RELEASE

      public static final int EVENT_JOB_RELEASE
      Event ID: Job release event.
      See Also:
    • EVENT_JOB_FINISH

      public static final int EVENT_JOB_FINISH
      Event ID: Job finish event.
      See Also:
    • EVENT_POLLING_SERVER_NEXT

      public static final int EVENT_POLLING_SERVER_NEXT
      Event ID: Polling next event.
      See Also:
    • EVENT_POLLING_SERVER_READY

      public static final int EVENT_POLLING_SERVER_READY
      Event ID: Polling next ready.
      See Also:
    • EVENT_RENEGE

      public static final int EVENT_RENEGE
      Event ID: Job renege event.
      See Also:
    • EVENT_RETRIAL

      public static final int EVENT_RETRIAL
      Event ID: Job retrial event.
      See Also:
    • EVENT_RETRIAL_JOB

      public static final int EVENT_RETRIAL_JOB
      Event ID: Job retrial event.
      See Also:
    • EVENT_SETUP_JOB

      public static final int EVENT_SETUP_JOB
      Event ID: Job setup event.
      See Also:
    • EVENT_JOB_REQUEST_FROM_SERVER

      public static final int EVENT_JOB_REQUEST_FROM_SERVER
      Event ID: Job request from server event
      See Also:
    • EVENT_RESET_COOLSTART

      public static final int EVENT_RESET_COOLSTART
      Event ID: CoolStart variable reset event
      See Also:
    • EVENT_SET_UP_COMPLETE

      public static final int EVENT_SET_UP_COMPLETE
      Event ID: Set up complete event
      See Also:
    • EVENT_CHECK_DELAY_OFF

      public static final int EVENT_CHECK_DELAY_OFF
      See Also:
    • EVENT_QUEUE_IDLE

      public static final int EVENT_QUEUE_IDLE
      See Also:
    • EVENT_QUEUE_IDLE_ACK

      public static final int EVENT_QUEUE_IDLE_ACK
      See Also:
    • EVENT_VACATION_JOB

      public static final int EVENT_VACATION_JOB
      See Also:
  • Constructor Details

    • NetEvent

      public NetEvent()
  • Method Details

    • getEventName

      public static String getEventName(int eventId)
      Returns the name of the event, used in debug.
      Parameters:
      eventId - The event ID.
      Returns:
      The name of the event.