Class: Roby::EventConstraints::UnboundTaskPredicate::False
Overview
Representation of a predicate that is always false
Instance Method Summary
collapse
#compile, #initialize, #negate, #pretty_print, #to_unbound_task_predicate
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
|
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
|
438
439
440
|
# File 'lib/roby/event_constraints.rb', line 438
def or(pred)
pred
end
|
#required_events ⇒ Object
402
403
404
|
# File 'lib/roby/event_constraints.rb', line 402
def required_events
Set.new
end
|
#static?(_task) ⇒ Boolean
422
423
424
|
# File 'lib/roby/event_constraints.rb', line 422
def static?(_task)
true
end
|
426
427
428
|
# File 'lib/roby/event_constraints.rb', line 426
def to_s
"false"
end
|