Class: Planner::Variable

Inherits:
Array
  • Object
show all
Defined in:
lib/sfpagent/sfplanner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dependenciesObject

Returns the value of attribute dependencies.



9
10
11
# File 'lib/sfpagent/sfplanner.rb', line 9

def dependencies
  @dependencies
end

#goalObject

Returns the value of attribute goal.



9
10
11
# File 'lib/sfpagent/sfplanner.rb', line 9

def goal
  @goal
end

#initObject

Returns the value of attribute init.



9
10
11
# File 'lib/sfpagent/sfplanner.rb', line 9

def init
  @init
end

#joinsObject

Returns the value of attribute joins.



9
10
11
# File 'lib/sfpagent/sfplanner.rb', line 9

def joins
  @joins
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/sfpagent/sfplanner.rb', line 10

def name
  @name
end