class IdentifierAdder: Any
Constructors
<init>
constructor(parameters: Roadspaces2CitygmlParameters)
Adds object identifiers from the RoadSpaces model to an AbstractCityObject (CityGML model).
Parameters
Name | Description |
---|---|
parameters: Roadspaces2CitygmlParameters
|
Methods
getGmlIdentifier
fun getGmlIdentifier(id: JunctionIdentifier): String
Returns the GML identifier (with prefix) of the id.
Parameters
Name | Description |
---|---|
id: JunctionIdentifier
|
ReturnValue
Name | Description |
---|---|
String
|
getGmlIdentifier
fun getGmlIdentifier(id: RoadspaceObjectIdentifier): String
Returns the GML identifier (with prefix) of the id.
Parameters
Name | Description |
---|---|
id: RoadspaceObjectIdentifier
|
ReturnValue
Name | Description |
---|---|
String
|
getGmlIdentifier
fun getGmlIdentifier(id: LaneIdentifier): String
Returns the GML identifier (with prefix) of the id.
Parameters
Name | Description |
---|---|
id: LaneIdentifier
|
ReturnValue
Name | Description |
---|---|
String
|
addUniqueIdentifier
fun addUniqueIdentifier(id: RoadspaceObjectIdentifier, dstCityObject: AbstractCityObject)
Adds the hashed id and the name of the RoadspaceIdentifier to the dstCityObject, whereby the id can only be assigned once (otherwise an IllegalArgumentException is thrown).
Parameters
Name | Description |
---|---|
id: RoadspaceObjectIdentifier
|
identifier to be added to the dstCityObject |
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
addUniqueIdentifier
fun addUniqueIdentifier(id: LaneIdentifier, dstCityObject: AbstractCityObject)
Adds the hashed id of the LaneIdentifier to the dstCityObject, whereby the id can only be assigned once (otherwise an IllegalArgumentException is thrown).
Parameters
Name | Description |
---|---|
id: LaneIdentifier
|
identifier to be added to the dstCityObject |
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
addIdentifier
fun addIdentifier(id: RoadspaceIdentifier, name: String, dstCityObject: AbstractCityObject)
Adds a pseudo random hash id (hash based on the id and the name) and name to the dstCityObject.
Parameters
Name | Description |
---|---|
id: RoadspaceIdentifier
|
|
name: String
|
|
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
addIdentifier
fun addIdentifier(id: LaneIdentifier, name: String, dstCityObject: AbstractCityObject)
Adds a pseudo random hash id (hash based on the id and the name) and name to the dstCityObject.
Parameters
Name | Description |
---|---|
id: LaneIdentifier
|
|
name: String
|
|
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
addIdentifier
fun addIdentifier(id: RoadspaceObjectIdentifier, name: String, dstCityObject: AbstractCityObject)
Adds a pseudo random hash id (hash based on the id and the name) and name to the dstCityObject.
Parameters
Name | Description |
---|---|
id: RoadspaceObjectIdentifier
|
|
name: String
|
|
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
addDetailedIdentifier
fun addDetailedIdentifier(id: RoadspaceObjectIdentifier, name: Option
Adds a pseudo random hash id (hash based on the id, name, subName, index) and name-subName to the dstCityObject.
Parameters
Name | Description |
---|---|
id: RoadspaceObjectIdentifier
|
|
name: Option
|
|
subName: String
|
|
index: Int
|
|
dstCityObject: AbstractCityObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
generateRandomUUID
fun generateRandomUUID(): String
Returns a completely random id.
ReturnValue
Name | Description |
---|---|
String
|
Adds object identifiers from the RoadSpaces model to an AbstractCityObject (CityGML model).