class SISFC::Event

Constants

ET_END_OF_SIMULATION

ET_VM_SUSPEND = 5 ET_VM_RESUME = 6

ET_REQUEST_ARRIVAL
ET_REQUEST_CLOSURE
ET_REQUEST_FORWARDING
ET_REQUEST_GENERATION
ET_WORKFLOW_STEP_COMPLETED

Attributes

data[R]

should this be attr_accessor instead?

destination[R]

should this be attr_accessor instead?

time[R]

should this be attr_accessor instead?

type[R]

should this be attr_accessor instead?

Public Class Methods

new(type, data, time, destination) click to toggle source
# File lib/sisfc/event.rb, line 22
def initialize(type, data, time, destination)
  @type        = type
  @data        = data
  @time        = time
  @destination = destination
end

Public Instance Methods

<=>(event) click to toggle source
# File lib/sisfc/event.rb, line 29
def <=> (event)
  @time <=> event.time
end
to_s() click to toggle source
# File lib/sisfc/event.rb, line 33
def to_s
  "Event type: #{@type}, data: #{@data}, time: #{@time}, #{@destination}"
end