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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeGraphicInputbuildModel(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 ofGraphicInputthat have to be present.Methods inherited from class edu.ie3.datamodel.io.factory.input.graphics.GraphicInputFactory
buildModel, getFieldsMethods 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:GraphicInputFactoryReturns fields other than the required fields ofGraphicInputthat have to be present.- Specified by:
getAdditionalFieldsin 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:GraphicInputFactoryCreates a graphic input entity with given parameters- Specified by:
buildModelin 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
-