Commit bd98423f authored by Lily Tsai's avatar Lily Tsai
Browse files

Update README.md

parent 4c53af3e
...@@ -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
......
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