Class: Risc::Event
- Inherits:
-
Object
- Object
- Risc::Event
- 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
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = NULL_EVENT) ⇒ Event
constructor
A new instance of Event.
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
#type ⇒ Object
Returns the value of attribute type.
35 36 37 |
# File 'lib/risc/Event.rb', line 35 def type @type end |