Commit 1ffc2b27 authored by LIly's avatar LIly
Browse files
parents e84fce76 bd98423f
...@@ -39,7 +39,7 @@ repositories { ...@@ -39,7 +39,7 @@ repositories {
maven { url "https://dl.bintray.com/tslilyai/EncounterBasedCommunication" } maven { url "https://dl.bintray.com/tslilyai/EncounterBasedCommunication" }
} }
dependencies { dependencies {
compile 'org.mpisws:ebclibrary:0.1.8' compile 'org.mpisws:ebclibrary:0.1.0.1'
} }
``` ```
...@@ -153,13 +153,11 @@ EncounterQueryConstraint encounterConstraintSpaceTime = new SpaceTimeIntersectCo ...@@ -153,13 +153,11 @@ EncounterQueryConstraint encounterConstraintSpaceTime = new SpaceTimeIntersectCo
null /*non-null values constrains to encounters overlapping with the specified time value*/); null /*non-null values constrains to encounters overlapping with the specified time value*/);
/* EXAMPLE: SENDING TO ENCOUNTERS THAT OCCURRED ON YOUR PATH (TRAJECTORY) */ /* EXAMPLE: SENDING TO ENCOUNTERS THAT OCCURRED ON YOUR PATH (TRAJECTORY) */
List<TrajectoryElement> myTrajectory = ebc.getCommunicationClient().getMyTrajectory(
CURRENT_TIME_MS() - MIN_TO_MS(100)/*starttime*/,
CURRENT_TIME_MS()/*endtime*/);
EncounterQueryConstraint encounterConstraintTrajectory = new TrajectoryConstraint( EncounterQueryConstraint encounterConstraintTrajectory = new TrajectoryConstraint(
myTrajectory, System.currentTimeMillis()-DAYS2MS(1), System.currentTimeMillis(),
MIN_TO_MS(10) /* length of overlap with myTrajectory */, MIN2MS(10),
null /*non-null values constrains to encounters overlapping with the specified time value*/); null // don't factor in causality,
false);
// Note that this will require the network to be available, as messages through encounters // Note that this will require the network to be available, as messages through encounters
// are sent via a secure cloud service // are sent via a secure cloud service
...@@ -185,8 +183,8 @@ Client.GetReceivedMessagesCallback callback = new ESClient.GetReceivedMessagesCa ...@@ -185,8 +183,8 @@ Client.GetReceivedMessagesCallback callback = new ESClient.GetReceivedMessagesCa
msgText = encounterForwardingMessage.getMsgText(); msgText = encounterForwardingMessage.getMsgText();
break; break;
case PRIVATE_MESSAGE: case PRIVATE_MESSAGE:
MessageChannelMessage messageChannelMessage = msg.getMessageChannelMessage(); PrivateMessage privateMessage = msg.getPrivateMessage();
msgText = messageChannelMessage.getMsgText(); msgText = privateMessage.getMsgText();
break; break;
default: // skip non-messaging type messages used as metadata default: // skip non-messaging type messages used as metadata
msgText = ""; msgText = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment