class NameAndStream extends Object
| Constructor and Description |
|---|
NameAndStream(String text,
String locationDescription)
Parse a TrafCOD identifier and extract all required information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Retrieve the name.
|
int |
getNumberOfChars()
Retrieve the number of characters consumed from the input.
|
short |
getStream()
Retrieve the stream number.
|
boolean |
isNegated()
Was a negation operator ('N') embedded in the name?
|
String |
toString() |
public NameAndStream(String text, String locationDescription) throws TrafficControlException
text - String; the TrafCOD identifier (may be followed by more text)locationDescription - String; description of the location in the input fileTrafficControlException - when text is not a valid TrafCOD variable namepublic boolean isNegated()
public short getStream()
public String getName()
public int getNumberOfChars()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.