xml.ogema-sample.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- This file is part of OGEMA. OGEMA is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. OGEMA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OGEMA. If not, see <http://www.gnu.org/licenses/>. --> <!-- Example document for the OGEMA 2.0 REST XML schema. --> <og:resource xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:og='http://www.ogema-source.net/REST' xsi:schemaLocation='http://www.ogema-source.net/REST Ogema.xsd'> <name>switchBox</name> <type>org.ogema.model.devices.sensoractordevices.SingleSwitchBox</type> <path>switchBox</path> <decorating>false</decorating> <active>true</active> <resource> <name>electricityConnection</name> <type>org.ogema.model.connections.ElectricityConnection</type> <path>switchBox/electricityConnection</path> <decorating>false</decorating> <active>true</active> <resource> <name>powerSensor</name> <type>org.ogema.model.sensors.ElectricPowerSensor</type> <path>switchBox/electricityConnection/powerSensor</path> <decorating>false</decorating> <active>true</active> <resource xsi:type="og:FloatResource"> <name>reading</name> <type>org.ogema.core.model.units.PowerResource</type> <path>switchBox/electricityConnection/powerSensor/reading</path> <decorating>false</decorating> <active>true</active> <value>24.7</value> <unit>W</unit> </resource> </resource> </resource> <resourcelink> <link>kitchenLight</link> <type>org.ogema.model.devices.buildingtechnology.ElectricLight</type> <name>device</name> </resourcelink> <resource> <name>onOffSwitch</name> <type>org.ogema.model.actors.OnOffSwitch</type> <path>switchBox/onOffSwitch</path> <decorating>false</decorating> <active>true</active> <resource xsi:type="og:BooleanResource"> <name>stateControl</name> <type>org.ogema.core.model.simple.BooleanResource</type> <path>switchBox/onOffSwitch/stateControl</path> <decorating>false</decorating> <active>true</active> <value>true</value> </resource> <resource xsi:type="og:BooleanResource"> <name>stateFeedback</name> <type>org.ogema.core.model.simple.BooleanResource</type> <path>switchBox/onOffSwitch/stateFeedback</path> <decorating>false</decorating> <active>true</active> <value>true</value> </resource> </resource> </og:resource>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy