Class: Roby::EventConstraints::UnboundTaskPredicate::False
Overview
Representation of a predicate that is always false
Instance Method Summary
collapse
#compile, #negate, #pretty_print, #to_unbound_task_predicate
Instance Method Details
390
|
# File 'lib/roby/event_constraints.rb', line 390
def ==(pred); pred.kind_of?(False) end
|
#and(pred) ⇒ Object
397
|
# File 'lib/roby/event_constraints.rb', line 397
def and(pred); self end
|
392
393
394
|
# File 'lib/roby/event_constraints.rb', line 392
def code
"false"
end
|
#evaluate(task) ⇒ Object
386
|
# File 'lib/roby/event_constraints.rb', line 386
def evaluate(task); false end
|
#explain_false(task) ⇒ Object
384
|
# File 'lib/roby/event_constraints.rb', line 384
def explain_false(task); Hash.new end
|
#explain_static(task) ⇒ Object
385
|
# File 'lib/roby/event_constraints.rb', line 385
def explain_static(task); Hash.new end
|
#explain_true(task) ⇒ Object
383
|
# File 'lib/roby/event_constraints.rb', line 383
def explain_true(task); Hash.new end
|
396
|
# File 'lib/roby/event_constraints.rb', line 396
def or(pred); pred end
|
#required_events ⇒ Object
382
|
# File 'lib/roby/event_constraints.rb', line 382
def required_events; Set.new end
|
#static?(task) ⇒ Boolean
387
|
# File 'lib/roby/event_constraints.rb', line 387
def static?(task); true end
|
388
|
# File 'lib/roby/event_constraints.rb', line 388
def to_s; "false" end
|