public class MultiProfileStateStore extends Object implements ProfileStateStore
| Constructor and Description |
|---|
MultiProfileStateStore() |
MultiProfileStateStore(MultiProfileStateStore other)
initialize a multi profile state store for a new round based on the minimum upper bounds from a previous round.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(TransitStop transitStop) |
Collection<ProfileState> |
get(TransitStop tstop)
get the nondominated states at a particular vertex
|
Collection<ProfileState> |
getAll()
get all nondominated states
|
Collection<TransitStop> |
keys()
the transit stops represented
|
void |
mergeStates()
merge similar states (states that have come from the same place on different patterns)
|
boolean |
put(ProfileState ps)
store a profile state, if it is not dominated.
|
int |
size()
the number of profile states stored
|
public MultiProfileStateStore(MultiProfileStateStore other)
public MultiProfileStateStore()
public boolean put(ProfileState ps)
ProfileStateStoreput in interface ProfileStateStorepublic Collection<ProfileState> get(TransitStop tstop)
ProfileStateStoreget in interface ProfileStateStorepublic Collection<ProfileState> getAll()
ProfileStateStoregetAll in interface ProfileStateStorepublic int size()
ProfileStateStoresize in interface ProfileStateStorepublic void mergeStates()
public Collection<TransitStop> keys()
ProfileStateStorekeys in interface ProfileStateStorepublic boolean containsKey(TransitStop transitStop)
containsKey in interface ProfileStateStoreCopyright © 2018. All rights reserved.