Class: Risc::PDescr
- Inherits:
-
Object
- Object
- Risc::PDescr
- Defined in:
- lib/risc/Sim.rb
Overview
Internal Sim class used to describe a Process.
Instance Attribute Summary collapse
-
#available_at ⇒ Object
Returns the value of attribute available_at.
-
#process ⇒ Object
Returns the value of attribute process.
-
#status ⇒ Object
Returns the value of attribute status.
-
#total_action_time ⇒ Object
Returns the value of attribute total_action_time.
Instance Method Summary collapse
-
#initialize(process = nil, status = P_TERMINATED) ⇒ PDescr
constructor
A new instance of PDescr.
Constructor Details
#initialize(process = nil, status = P_TERMINATED) ⇒ PDescr
Returns a new instance of PDescr.
38 39 40 41 42 43 |
# File 'lib/risc/Sim.rb', line 38 def initialize(process = nil,status = P_TERMINATED) @process = process @status = status @total_action_time = INIT_TIME @available_at = INIT_TIME end |
Instance Attribute Details
#available_at ⇒ Object
Returns the value of attribute available_at.
36 37 38 |
# File 'lib/risc/Sim.rb', line 36 def available_at @available_at end |
#process ⇒ Object
Returns the value of attribute process.
36 37 38 |
# File 'lib/risc/Sim.rb', line 36 def process @process end |
#status ⇒ Object
Returns the value of attribute status.
36 37 38 |
# File 'lib/risc/Sim.rb', line 36 def status @status end |
#total_action_time ⇒ Object
Returns the value of attribute total_action_time.
36 37 38 |
# File 'lib/risc/Sim.rb', line 36 def total_action_time @total_action_time end |