Class: Risc::PDescr

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

Overview

Internal Sim class used to describe a Process.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Returns the value of attribute available_at.



36
37
38
# File 'lib/risc/Sim.rb', line 36

def available_at
  @available_at
end

#processObject

Returns the value of attribute process.



36
37
38
# File 'lib/risc/Sim.rb', line 36

def process
  @process
end

#statusObject

Returns the value of attribute status.



36
37
38
# File 'lib/risc/Sim.rb', line 36

def status
  @status
end

#total_action_timeObject

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