Class: Roby::EventConstraints::UnboundTaskPredicate::False

Inherits:
Roby::EventConstraints::UnboundTaskPredicate show all
Defined in:
lib/roby/event_constraints.rb

Overview

Representation of a predicate that is always false

Instance Method Summary collapse

Methods inherited from Roby::EventConstraints::UnboundTaskPredicate

#compile, #initialize, #negate, #pretty_print, #to_unbound_task_predicate

Constructor Details

This class inherits a constructor from Roby::EventConstraints::UnboundTaskPredicate

Instance Method Details

#==(other) ⇒ Object



430
431
432
# File 'lib/roby/event_constraints.rb', line 430

def ==(other)
    other.kind_of?(False)
end

#and(_pred) ⇒ Object



442
443
444
# File 'lib/roby/event_constraints.rb', line 442

def and(_pred)
    self
end

#codeObject



434
435
436
# File 'lib/roby/event_constraints.rb', line 434

def code
    "false"
end

#evaluate(_task) ⇒ Object



418
419
420
# File 'lib/roby/event_constraints.rb', line 418

def evaluate(_task)
    false
end

#explain_false(_task) ⇒ Object



410
411
412
# File 'lib/roby/event_constraints.rb', line 410

def explain_false(_task)
    {}
end

#explain_static(_task) ⇒ Object



414
415
416
# File 'lib/roby/event_constraints.rb', line 414

def explain_static(_task)
    {}
end

#explain_true(_task) ⇒ Object



406
407
408
# File 'lib/roby/event_constraints.rb', line 406

def explain_true(_task)
    {}
end

#or(pred) ⇒ Object



438
439
440
# File 'lib/roby/event_constraints.rb', line 438

def or(pred)
    pred
end

#required_eventsObject



402
403
404
# File 'lib/roby/event_constraints.rb', line 402

def required_events
    Set.new
end

#static?(_task) ⇒ Boolean

Returns:

  • (Boolean)


422
423
424
# File 'lib/roby/event_constraints.rb', line 422

def static?(_task)
    true
end

#to_sObject



426
427
428
# File 'lib/roby/event_constraints.rb', line 426

def to_s
    "false"
end