コード例 #1
0
 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)
コード例 #2
0
ファイル: fakeCall.py プロジェクト: socialdevices/manager
 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)
コード例 #3
0
ファイル: conversation.py プロジェクト: socialdevices/manager
 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)
コード例 #4
0
 def precondition(self, d1, d2):
     return misc.proximity([d1, d2]) and \
         d1.hasInterface(TalkingDevice) and d2.hasInterface(TalkingDevice)