A sample moml file describing a site layout with 2 sensors
moml_site(x)_2.xml — Extensible Markup Language (XML), 6Kb
File contents
<?xml version="1.0" standalone="no"?> <!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN" "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd"> <entity name="sml_(2)" class="ptolemy.actor.TypedCompositeActor"> <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel"> </property> <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList"> </property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2082:9:31"> </property> <property name="TOP Provenance Recorder" class="org.kepler.provenance.ProvenanceRecorder"> </property> <property name="Reporting Listener" class="org.kepler.reporting.ReportingListener"> </property> <property name="DE Director" class="ptolemy.domains.de.kernel.DEDirector"> <property name="startTime" class="ptolemy.data.expr.Parameter" value="0.0"> </property> <property name="stopTime" class="ptolemy.data.expr.Parameter" value="Infinity"> </property> <property name="stopWhenQueueIsEmpty" class="ptolemy.data.expr.Parameter" value="false"> </property> <property name="synchronizeToRealTime" class="ptolemy.data.expr.Parameter" value="false"> </property> <property name="isCQAdaptive" class="ptolemy.data.expr.Parameter" value="true"> </property> <property name="minBinCount" class="ptolemy.data.expr.Parameter" value="2"> </property> <property name="binCountFactor" class="ptolemy.data.expr.Parameter" value="2"> </property> <property name="timeResolution" class="ptolemy.actor.parameters.SharedParameter" value="1E-10"> </property> <property name="_location" class="ptolemy.kernel.util.Location" value="{45.0, 40.0}"> </property> <property name="_hide" class="ptolemy.kernel.util.StringAttribute"> </property> </property> <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={175, 24, 1136, 878}, maximized=false}"> </property> <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[795, 703]"> </property> <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0"> </property> <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{397.5, 351.5}"> </property> <entity name="sensor1" class="org.kepler.sensor.actor.Sensor"> <property name="isOn" class="ptolemy.actor.parameters.PortParameter" value="true"> </property> <property name="samplingPeriod" class="ptolemy.actor.parameters.PortParameter" value="10.000000"> </property> <property name="dataLogger" class="ptolemy.data.expr.StringParameter" value="CR800"> </property> <property name="sensorServer" class="ptolemy.data.expr.StringParameter" value="localhost"> </property> <property name="_location" class="ptolemy.kernel.util.Location" value="{315.0, 250.0}"> </property> <property name="coefficients" class="ptolemy.data.expr.StringParameter" value=""> </property> <property name="conversion-type" class="ptolemy.data.expr.StringParameter" value="Linear"> </property> <property name="measurement-unit" class="ptolemy.data.expr.StringParameter" value="degrees Celsius"> </property> <property name="sampleMethod" class="ptolemy.data.expr.StringParameter" value="average"> </property> <property name="samples-per-measurement" class="ptolemy.data.expr.Parameter" value="10"> </property> <property name="sensor-make" class="ptolemy.data.expr.StringParameter" value="Vaisala"> </property> <property name="sensor-measurement" class="ptolemy.data.expr.StringParameter" value="Temperature"> </property> <property name="sensor-model" class="ptolemy.data.expr.StringParameter" value="HMP45A"> </property> <property name="serial-number" class="ptolemy.data.expr.StringParameter" value="B3310001"> </property> <port name="data" class="ptolemy.actor.TypedIOPort"> <property name="output"/> <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="NORTH"> </property> </port> <port name="isOn" class="ptolemy.actor.parameters.ParameterPort"> <property name="input"/> </port> <port name="samplingPeriod" class="ptolemy.actor.parameters.ParameterPort"> <property name="input"/> </port> </entity> <entity name="sensor2" class="org.kepler.sensor.actor.Sensor"> <property name="isOn" class="ptolemy.actor.parameters.PortParameter" value="true"> </property> <property name="samplingPeriod" class="ptolemy.actor.parameters.PortParameter" value="10.000000"> </property> <property name="dataLogger" class="ptolemy.data.expr.StringParameter" value="CR800"> </property> <property name="sensorServer" class="ptolemy.data.expr.StringParameter" value="localhost"> </property> <property name="_location" class="ptolemy.kernel.util.Location" value="{430.0, 250.0}"> </property> <property name="coefficients" class="ptolemy.data.expr.StringParameter" value=""> </property> <property name="conversion-type" class="ptolemy.data.expr.StringParameter" value="Linear"> </property> <property name="measurement-unit" class="ptolemy.data.expr.StringParameter" value="degrees Celsius"> </property> <property name="sampleMethod" class="ptolemy.data.expr.StringParameter" value="average"> </property> <property name="samples-per-measurement" class="ptolemy.data.expr.Parameter" value="10"> </property> <property name="sensor-make" class="ptolemy.data.expr.StringParameter" value="Vaisala"> </property> <property name="sensor-measurement" class="ptolemy.data.expr.StringParameter" value="Temperature"> </property> <property name="sensor-model" class="ptolemy.data.expr.StringParameter" value="HMP45A"> </property> <property name="serial-number" class="ptolemy.data.expr.StringParameter" value="B3310002"> </property> <port name="data" class="ptolemy.actor.TypedIOPort"> <property name="output"/> <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="NORTH"> </property> </port> <port name="isOn" class="ptolemy.actor.parameters.ParameterPort"> <property name="input"/> </port> <port name="samplingPeriod" class="ptolemy.actor.parameters.ParameterPort"> <property name="input"/> </port> </entity> </entity>