Search in sources :

Example 6 with BdaTimestamp

use of org.openmuc.openiec61850.BdaTimestamp in project Protocol-Adapter-IEC61850 by OSGP.

the class NodeContainer method writeDate.

/**
     * Writes a Date value to the given child on the device
     */
public void writeDate(final SubDataAttribute child, final Date value) throws NodeWriteException {
    final BdaTimestamp dBdaTimestamp = (BdaTimestamp) this.parent.getChild(child.getDescription());
    LOGGER.info("device: {}, writing {} to {}", this.deviceIdentification, value, child.getDescription());
    dBdaTimestamp.setDate(value);
    this.writeNode(dBdaTimestamp);
}
Also used : BdaTimestamp(org.openmuc.openiec61850.BdaTimestamp)

Aggregations

BdaTimestamp (org.openmuc.openiec61850.BdaTimestamp)5 Array (org.openmuc.openiec61850.Array)2 NodeWriteException (com.alliander.osgp.adapter.protocol.iec61850.exceptions.NodeWriteException)1 Date (java.util.Date)1 DateTime (org.joda.time.DateTime)1 BdaBoolean (org.openmuc.openiec61850.BdaBoolean)1 BdaInt8U (org.openmuc.openiec61850.BdaInt8U)1 BdaVisibleString (org.openmuc.openiec61850.BdaVisibleString)1