def precondition(self, d1, d2):
     return misc.proximity([d1, d2]) and d1.isWilling() and d2.talkingDevice.isWilling() and d1.talkingDevice.isSilent() and \
         d1.hasInterface(TalkingDevice) and d2.hasInterface(TalkingDevice)
Ejemplo n.º 2
0
 def precondition(self, d1, d2, eid):
     return misc.proximity([d1, d2]) and d1.calendarSource.eventApproaching(eid) and d1.hasInterface(TalkingDevice) and \
         d1.hasInterface(CalendarSource) and d2.hasInterface(TalkingDevice)
Ejemplo n.º 3
0
 def precondition(self, source, d2, d3, eid):
     return misc.proximity([source, d2, d3]) and source.calendarSource.eventApproaching(eid) and source.hasInterface(TalkingDevice)\
          and source.hasInterface(CalendarSource) and d2.hasInterface(TalkingDevice) and d3.hasInterface(TalkingDevice)
 def precondition(self, d1, d2):
     return misc.proximity([d1, d2]) and \
         d1.hasInterface(TalkingDevice) and d2.hasInterface(TalkingDevice)