Class: Planner::Variable
- Inherits:
-
Array
- Object
- Array
- Planner::Variable
- Defined in:
- lib/sfpagent/sfplanner.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#goal ⇒ Object
Returns the value of attribute goal.
-
#init ⇒ Object
Returns the value of attribute init.
-
#joins ⇒ Object
Returns the value of attribute joins.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, init = nil, goal = nil) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(name, init = nil, goal = nil) ⇒ Variable
Returns a new instance of Variable.
12 13 14 15 16 17 18 19 20 |
# File 'lib/sfpagent/sfplanner.rb', line 12 def initialize(name, init=nil, goal=nil) @name = name @values = [] @map = {} @init = init @goal = goal @joins = {} @dependencies = {} end |
Instance Attribute Details
#dependencies ⇒ Object
Returns the value of attribute dependencies.
9 10 11 |
# File 'lib/sfpagent/sfplanner.rb', line 9 def dependencies @dependencies end |
#goal ⇒ Object
Returns the value of attribute goal.
9 10 11 |
# File 'lib/sfpagent/sfplanner.rb', line 9 def goal @goal end |
#init ⇒ Object
Returns the value of attribute init.
9 10 11 |
# File 'lib/sfpagent/sfplanner.rb', line 9 def init @init end |
#joins ⇒ Object
Returns the value of attribute joins.
9 10 11 |
# File 'lib/sfpagent/sfplanner.rb', line 9 def joins @joins end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/sfpagent/sfplanner.rb', line 10 def name @name end |