Class: Longjing::PDDL::Empty

Inherits:
Literal
  • Object
show all
Defined in:
lib/longjing/pddl/literal.rb

Instance Attribute Summary

Attributes inherited from Literal

#ff_goal, #ff_layer, #ff_neg_goal

Instance Method Summary collapse

Methods inherited from Literal

#to_a

Instance Method Details

#applicable?(set) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/longjing/pddl/literal.rb', line 22

def applicable?(set)
  true
end

#apply(set) ⇒ Object



26
27
# File 'lib/longjing/pddl/literal.rb', line 26

def apply(set)
end

#inspectObject



37
38
39
# File 'lib/longjing/pddl/literal.rb', line 37

def inspect
  "<empty>"
end

#substitute(variables) ⇒ Object



29
30
31
# File 'lib/longjing/pddl/literal.rb', line 29

def substitute(variables)
  self
end

#to_sObject



33
34
35
# File 'lib/longjing/pddl/literal.rb', line 33

def to_s
  "()"
end