To: | "[ontolog-forum]" <ontolog-forum@xxxxxxxxxxxxxxxx> |
---|---|
From: | Simon Spero <sesuncedu@xxxxxxxxx> |
Date: | Mon, 7 Jan 2013 17:25:26 -0500 |
Message-id: | <CADE8KM7noZGzGXqD4pq=cVr6jZYZR0d--wEtxX_4v8Y--z4V5w@xxxxxxxxxxxxxx> |
We can reify the events, Davidson style. We can define classes for MessageSendingEvent and ReplyReceivedEvent. ;;; If a reply is received for a message sending before the deadline,
;;; there is a second message sending whose contents depend on the contents of the reply (forall ((MessageSendingEvent ?Send1 (ReplyReceivedEvent ?Reply)) (if (replyReceivedInTime ?Send1 ?Reply)
(exists ((MessageSendingEvent ?Send2)) (and (= (SenderFn ?Send1) (SenderFn ?Send2))
(= (TargetFn ?Send1) (TargetFn ?Send2)) (= (ContentsFn ?Send2) (ProcessMessageFn (ContentsFn ?Reply)))))))
;;; If a message is sent and there is no reply received before the deadline, ;;; there is a second message sending whose contents are the Nack for the first message. (forall ((MessageSendingEvent ?Send1)) (if (not (exists (?Reply) (replyReceivedInTime ?Send1 ?Reply)))
(exists ((MessageSendingEvent ?Send2)) (and (= (SenderFn ?Send1) (SenderFn ?Send2))
(= (TargetFn ?Send1) (TargetFn ?Send2)) (= (ContentsFn ?Send2) (NackContentsFn ?Send1))))
;;; replyReceived holds if ?Reply is a response to ?Send (forall ((MessageSendingEvent ?Send) (ReplyReceivedEvent ?Reply)) (iff (inReplyTo ?Send ?Reply)
(replyReceived ?Send ?Reply))) ;;; replyReceivedInTime holds if ?Reply is a response to ?Send that was received before the deadline
(forall ((MessageSendingEvent ?Send) (ReplyReceivedEvent ?Reply)) (iff (and (replyReceived ?Send ?Reply) (< (StartFn ?Reply) (+ (EndFn ?Send1) MaxWaitTime)))
(replyReceivedInTime ?Send ?Reply))) Would someone have a recommendation on how to formally model following situations: _________________________________________________________________ Message Archives: http://ontolog.cim3.net/forum/ontolog-forum/ Config Subscr: http://ontolog.cim3.net/mailman/listinfo/ontolog-forum/ Unsubscribe: mailto:ontolog-forum-leave@xxxxxxxxxxxxxxxx Shared Files: http://ontolog.cim3.net/file/ Community Wiki: http://ontolog.cim3.net/wiki/ To join: http://ontolog.cim3.net/cgi-bin/wiki.pl?WikiHomePage#nid1J (01) |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ontolog-forum] What is Data? What is a Datum?, Kingsley Idehen |
---|---|
Next by Date: | Re: [ontolog-forum] What is Data? What is a Datum?, Gary Berg-Cross |
Previous by Thread: | Re: [ontolog-forum] Modeling expectations and expirable events, Edmon Begoli |
Next by Thread: | Re: [ontolog-forum] Modeling expectations and expirable events, doug foxvog |
Indexes: | [Date] [Thread] [Top] [All Lists] |