class IdentifierAdder: Any

Adds object identifiers from the RoadSpaces model to an AbstractCityObject (CityGML model).

Constructors

<init>

constructor(configuration: Roadspaces2CitygmlConfiguration)

Adds object identifiers from the RoadSpaces model to an AbstractCityObject (CityGML model).

Parameters

Name Description
configuration: Roadspaces2CitygmlConfiguration

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) 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) 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 the hashed id and the name of the RoadspaceObjectIdentifier 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

name: String
dstCityObject: AbstractCityObject

ReturnValue

Name Description
Unit

generateRandomUUID

fun generateRandomUUID(): String

Returns a completely random id.

ReturnValue

Name Description
String