Class LineGraphicInputFactory
java.lang.Object
edu.ie3.datamodel.io.factory.Factory<T,D,T>
edu.ie3.datamodel.io.factory.EntityFactory<T,D>
edu.ie3.datamodel.io.factory.input.graphics.GraphicInputFactory<LineGraphicInput,LineGraphicInputEntityData>
edu.ie3.datamodel.io.factory.input.graphics.LineGraphicInputFactory
public final class LineGraphicInputFactory
extends GraphicInputFactory<LineGraphicInput,LineGraphicInputEntityData>
Factory to create
LineGraphicInput
entities- Since:
- 08.04.20
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LineGraphicInput
buildModel
(LineGraphicInputEntityData data, UUID uuid, String graphicLayer, org.locationtech.jts.geom.LineString path) Creates a graphic input entity with given parametersprotected String[]
Returns fields other than the required fields ofGraphicInput
that have to be present.Methods inherited from class edu.ie3.datamodel.io.factory.input.graphics.GraphicInputFactory
buildModel, getFields
Methods inherited from class edu.ie3.datamodel.io.factory.Factory
expandSet, get, getFieldsString, getSupportedClasses, newSet, validateParameters
-
Constructor Details
-
LineGraphicInputFactory
public LineGraphicInputFactory()
-
-
Method Details
-
getAdditionalFields
Description copied from class:GraphicInputFactory
Returns fields other than the required fields ofGraphicInput
that have to be present.- Specified by:
getAdditionalFields
in classGraphicInputFactory<LineGraphicInput,
LineGraphicInputEntityData> - Returns:
- Array of field names, can be empty but not null
-
buildModel
protected LineGraphicInput buildModel(LineGraphicInputEntityData data, UUID uuid, String graphicLayer, org.locationtech.jts.geom.LineString path) Description copied from class:GraphicInputFactory
Creates a graphic input entity with given parameters- Specified by:
buildModel
in classGraphicInputFactory<LineGraphicInput,
LineGraphicInputEntityData> - Parameters:
data
- entity datauuid
- UUID of the input entitygraphicLayer
- Identifier of the graphic layer to place the object onpath
- Line string of the drawing- Returns:
- newly created asset object
-