Package com.powsybl.powerfactory.model
Class DataObject
java.lang.Object
com.powsybl.powerfactory.model.DataObject
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
ConstructorDescriptionDataObject
(long id, DataClass dataClass, DataObjectIndex index) DataObject
(long id, DataClass dataClass, DataObjectIndex index, Map<String, Object> attributeValues) -
Method Summary
Modifier and TypeMethodDescriptionfindAttributeValue
(String name) Optional<org.apache.commons.math3.linear.RealMatrix>
findFirstChildByClass
(String className) findIntAttributeValue
(String name) findLongAttributeValue
(String name) getAttributeValue
(String name) getChildrenByClass
(String className) double
org.apache.commons.math3.linear.RealMatrix
float
getFloatAttributeValue
(String name) long
getId()
getIndex()
int
getIntAttributeValue
(String name) long
getLongAttributeValue
(String name) getPath()
void
print
(PrintStream out, Function<DataObject, String> toString) setDoubleAttributeValue
(String name, double value) setDoubleMatrixAttributeValue
(String name, org.apache.commons.math3.linear.RealMatrix value) setDoubleVectorAttributeValue
(String name, List<Double> value) setFloatAttributeValue
(String name, float value) setFloatVectorAttributeValue
(String name, List<Float> value) setIntAttributeValue
(String name, int value) setIntVectorAttributeValue
(String name, List<Integer> value) setLocName
(String locName) setLongAttributeValue
(String name, long value) setLongVectorAttributeValue
(String name, List<Long> value) setObjectAttributeValue
(String name, long id) setObjectVectorAttributeValue
(String name, List<Long> ids) setParent
(DataObject parent) setStringAttributeValue
(String name, String value) setStringVectorAttributeValue
(String name, List<String> value) toString()
void
traverse
(Consumer<DataObject> handler) void
writeJson
(com.fasterxml.jackson.core.JsonGenerator generator)
-
Constructor Details
-
DataObject
-
DataObject
public DataObject(long id, DataClass dataClass, DataObjectIndex index, Map<String, Object> attributeValues)
-
-
Method Details
-
getId
public long getId() -
getLocName
-
getParent
-
setParent
-
getChildren
-
getChildrenByClass
-
getChild
-
getChild
-
findFirstChildByClass
-
getDataClass
-
getDataClassName
-
getIndex
-
getAttributeNames
-
getAttributeValues
-
findAttributeValue
-
getAttributeValue
-
findStringAttributeValue
-
getStringAttributeValue
-
setStringAttributeValue
-
setLocName
-
findObjectAttributeValue
-
getObjectAttributeValue
-
setObjectAttributeValue
-
findObjectVectorAttributeValue
-
getObjectVectorAttributeValue
-
setObjectVectorAttributeValue
-
findFloatAttributeValue
-
getFloatAttributeValue
-
setFloatAttributeValue
-
findIntVectorAttributeValue
-
getIntVectorAttributeValue
-
setIntVectorAttributeValue
-
findLongVectorAttributeValue
-
getLongVectorAttributeValue
-
setLongVectorAttributeValue
-
findFloatVectorAttributeValue
-
getFloatVectorAttributeValue
-
setFloatVectorAttributeValue
-
findDoubleVectorAttributeValue
-
getDoubleVectorAttributeValue
-
setDoubleVectorAttributeValue
-
findStringVectorAttributeValue
-
getStringVectorAttributeValue
-
setStringVectorAttributeValue
-
findIntAttributeValue
-
getIntAttributeValue
-
setIntAttributeValue
-
findLongAttributeValue
-
getLongAttributeValue
-
setLongAttributeValue
-
findDoubleAttributeValue
-
getDoubleAttributeValue
-
setDoubleAttributeValue
-
findDoubleMatrixAttributeValue
-
getDoubleMatrixAttributeValue
-
setDoubleMatrixAttributeValue
public DataObject setDoubleMatrixAttributeValue(String name, org.apache.commons.math3.linear.RealMatrix value) -
print
-
getPath
-
traverse
-
search
-
getFullName
-
writeJson
- Throws:
IOException
-
toString
-