Class: Risc::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/risc/Event.rb

Overview

Basic event in the simulation. This base class represents a piece of information or a signal exchanged between two processes through the simulator.

Constant Summary collapse

NULL_EVENT =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = NULL_EVENT) ⇒ Event

Returns a new instance of Event.



37
38
39
# File 'lib/risc/Event.rb', line 37

def initialize(type = NULL_EVENT)
	@type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



35
36
37
# File 'lib/risc/Event.rb', line 35

def type
  @type
end