Blame view
circus/src/jcircus/complementaryenvs/ChanProcessNameSetEnv.java
795 Bytes
8d0dc533f
![]() |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
package jcircus.complementaryenvs; import jcircus.interleaving.ProcessIdSet; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Vector; //@author: Samuel Lincoln Magalhães Barrocas //Maps a channel to a set of process name sets. //Each set of processes is supposed to share a front-end on the channel of the mapping (this is for channels with forced interleaving) public class ChanProcessNameSetEnv { private HashMap <String, Vector <ProcessIdSet>> _map; public ChanProcessNameSetEnv () { this._map = new LinkedHashMap <String, Vector <ProcessIdSet>> (); } public void put (String channel, Vector <ProcessIdSet> set) { this._map.put(channel, set); } public Vector <ProcessIdSet> get (String channel) { return this._map.get(channel); } } |