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, #negate, #pretty_print, #to_unbound_task_predicate

Instance Method Details

#==(pred) ⇒ Object



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

#codeObject



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

#or(pred) ⇒ Object



396
# File 'lib/roby/event_constraints.rb', line 396

def or(pred); pred end

#required_eventsObject



382
# File 'lib/roby/event_constraints.rb', line 382

def required_events; Set.new end

#static?(task) ⇒ Boolean

Returns:

  • (Boolean)


387
# File 'lib/roby/event_constraints.rb', line 387

def static?(task); true end

#to_sObject



388
# File 'lib/roby/event_constraints.rb', line 388

def to_s; "false" end