Class: Longjing::PDDL::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/longjing/search/ff.rb,
lib/longjing/pddl/literal.rb,
lib/longjing/search/ff_greedy.rb,
lib/longjing/ff/relaxed_graph_plan.rb

Direct Known Subclasses

And, Empty, Equal, Fact, Formula, Not

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ff_goalObject

Returns the value of attribute ff_goal.



6
7
8
# File 'lib/longjing/ff/relaxed_graph_plan.rb', line 6

def ff_goal
  @ff_goal
end

#ff_layerObject

Returns the value of attribute ff_layer.



6
7
8
# File 'lib/longjing/ff/relaxed_graph_plan.rb', line 6

def ff_layer
  @ff_layer
end

#ff_neg_goalObject

Returns the value of attribute ff_neg_goal.



11
12
13
# File 'lib/longjing/search/ff.rb', line 11

def ff_neg_goal
  @ff_neg_goal
end

Instance Method Details

#applicable?(set) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/longjing/pddl/literal.rb', line 4

def applicable?(set)
  raise "Unsupported operation"
end

#apply(set) ⇒ Object



8
9
10
# File 'lib/longjing/pddl/literal.rb', line 8

def apply(set)
  raise "Unsupported operation"
end

#substitute(variables) ⇒ Object



12
13
14
# File 'lib/longjing/pddl/literal.rb', line 12

def substitute(variables)
  raise "Unsupported operation"
end

#to_aObject



16
17
18
# File 'lib/longjing/pddl/literal.rb', line 16

def to_a
  [self]
end