Class NodeGraphicInputFactory
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<NodeGraphicInput,NodeGraphicInputEntityData>
edu.ie3.datamodel.io.factory.input.graphics.NodeGraphicInputFactory
public final class NodeGraphicInputFactory
extends GraphicInputFactory<NodeGraphicInput,NodeGraphicInputEntityData>
Factory to create
NodeGraphicInput
entities- Since:
- 08.04.20
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected NodeGraphicInput
buildModel
(NodeGraphicInputEntityData 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
-
NodeGraphicInputFactory
public NodeGraphicInputFactory()
-
-
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<NodeGraphicInput,
NodeGraphicInputEntityData> - Returns:
- Array of field names, can be empty but not null
-
buildModel
protected NodeGraphicInput buildModel(NodeGraphicInputEntityData 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<NodeGraphicInput,
NodeGraphicInputEntityData> - 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
-