public class SingleProfileStateStore extends Object implements ProfileStateStore
| Constructor and Description |
|---|
SingleProfileStateStore() |
SingleProfileStateStore(SingleProfileStateStore other)
initialize a single 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
|
boolean |
put(ProfileState ps)
store a profile state, if it is not dominated.
|
int |
size()
the number of profile states stored
|
public SingleProfileStateStore()
public SingleProfileStateStore(SingleProfileStateStore other)
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 Collection<TransitStop> keys()
ProfileStateStorekeys in interface ProfileStateStorepublic boolean containsKey(TransitStop transitStop)
containsKey in interface ProfileStateStoreCopyright © 2018. All rights reserved.