public class StreetNotesService extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static NoteMatcher |
ALWAYS_MATCHER |
static NoteMatcher |
BICYCLE_MATCHER |
static NoteMatcher |
DRIVING_MATCHER |
static NoteMatcher |
WHEELCHAIR_MATCHER |
Constructor and Description |
---|
StreetNotesService() |
Modifier and Type | Method and Description |
---|---|
void |
addNotesSource(StreetNotesSource source)
Add a new note source.
|
void |
addStaticNote(Edge edge,
Alert note,
NoteMatcher matcher) |
Set<Alert> |
getNotes(State state)
Return the set of notes applicable for this state / backedge pair.
|
void |
removeStaticNotes(Edge edge) |
public static final NoteMatcher WHEELCHAIR_MATCHER
public static final NoteMatcher DRIVING_MATCHER
public static final NoteMatcher BICYCLE_MATCHER
public static final NoteMatcher ALWAYS_MATCHER
public void addNotesSource(StreetNotesSource source)
source
- public Set<Alert> getNotes(State state)
state
- public void addStaticNote(Edge edge, Alert note, NoteMatcher matcher)
public void removeStaticNotes(Edge edge)
Copyright © 2019. All rights reserved.