-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f704d68
commit 8891f9a
Showing
8 changed files
with
55 additions
and
260 deletions.
There are no files selected for viewing
52 changes: 0 additions & 52 deletions
52
jdeeco-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/ConvoyEnsemble.java
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
jdeeco-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/ConvoyTest.java
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
jdeeco-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/Follower.java
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
jdeeco-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/Leader.java
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
...co-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/OtherVehicleEnsemble.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package cz.cuni.mff.d3s.jdeeco.matsim.demo.convoy; | ||
|
||
|
||
import org.matsim.api.core.v01.Id; | ||
|
||
import cz.cuni.mff.d3s.deeco.annotations.Ensemble; | ||
import cz.cuni.mff.d3s.deeco.annotations.In; | ||
import cz.cuni.mff.d3s.deeco.annotations.KnowledgeExchange; | ||
import cz.cuni.mff.d3s.deeco.annotations.Membership; | ||
import cz.cuni.mff.d3s.deeco.annotations.Out; | ||
import cz.cuni.mff.d3s.deeco.annotations.PeriodicScheduling; | ||
import cz.cuni.mff.d3s.deeco.task.ParamHolder; | ||
|
||
|
||
@Ensemble | ||
@PeriodicScheduling(period=500) | ||
public class OtherVehicleEnsemble { | ||
|
||
@Membership | ||
public static boolean membership( | ||
@In("member.id") String memberId, | ||
@In("coord.id") String coordId) { | ||
// System.out.println("membership: "+ memberId + " " + coordId); | ||
return !(memberId.equals(coordId)); | ||
} | ||
|
||
@KnowledgeExchange | ||
public static void map( | ||
@In("member.currentLink") Id memberLink, | ||
@Out("coord.otherVehicleLink") ParamHolder<Id> coordOtherLink, | ||
@In("member.id") String memberId, | ||
@In("coord.id") String coordId) { | ||
// System.out.println("exchange: "+ memberId + " " + coordId); | ||
coordOtherLink.value = memberLink; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
jdeeco-matsim-plugin/test/cz/cuni/mff/d3s/jdeeco/matsim/demo/convoy/Waypoint.java
This file was deleted.
Oops, something went wrong.