public interface PerceivableContext extends Identifiable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
void |
addGTU(GTU gtu)
Add a GTU to the network.
|
boolean |
containsGTU(GTU gtu)
Test whether a GTU is registered in the network.
|
boolean |
containsGtuId(String gtuId)
Test whether a GTU ID is registered in the network.
|
GTU |
getGTU(String gtuId)
Get a GTU in the model.
|
Set<GTU> |
getGTUs()
Get an overview of the GTUs in the model.
|
String |
getId()
Get a descriptive Id of the perceivable context (e.g., useful for debugging purposes).
|
void |
removeGTU(GTU gtu)
Remove a GTU from the network.
|
String getId()
getId
in interface Identifiable
Set<GTU> getGTUs()
GTU getGTU(String gtuId)
gtuId
- the id of the GTUvoid addGTU(GTU gtu)
gtu
- the GTU to addvoid removeGTU(GTU gtu)
gtu
- the GTU to removeboolean containsGTU(GTU gtu)
gtu
- the GTU to search forboolean containsGtuId(String gtuId)
gtuId
- the GTU ID to search forCopyright © 2014–2018 Delft University of Technology. All rights reserved.