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)
ProfileStateStore
put
in interface ProfileStateStore
public Collection<ProfileState> get(TransitStop tstop)
ProfileStateStore
get
in interface ProfileStateStore
public Collection<ProfileState> getAll()
ProfileStateStore
getAll
in interface ProfileStateStore
public int size()
ProfileStateStore
size
in interface ProfileStateStore
public Collection<TransitStop> keys()
ProfileStateStore
keys
in interface ProfileStateStore
public boolean containsKey(TransitStop transitStop)
containsKey
in interface ProfileStateStore
Copyright © 2018. All rights reserved.