You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by do...@apache.org on 2007/05/01 01:15:18 UTC
svn commit: r533875 [20/30] - in
/incubator/felix/sandbox/donsez/upnp.devicegen: ./ doc/ generation/
generation/res/ generation/res/device/ generation/res/service/ manifest/
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src...
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/service/WLANConfiguration.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/BinaryLight.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/BinaryLight.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/BinaryLight.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/BinaryLight.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,116 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.device;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.upnp.UPnPDevice;
+import org.osgi.service.upnp.UPnPIcon;
+import org.osgi.service.upnp.UPnPService;
+
+import org.apache.felix.upnp.devicegen.util.AbstractUPnPDevice;
+import org.apache.felix.upnp.devicegen.util.DeviceIcon;
+
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.service.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.impl.*;
+
+
+
+
+public class BinaryLight extends AbstractUPnPDevice {
+
+ public BinaryLight(BundleContext context, AbstractUPnPDevice parent) {
+ super(context,parent);
+
+ DEVICE_ID="uuid:adele-binarylight";
+
+ // ServiceModel Declaration List
+ SwitchPowerModel mySwitchPowerModel=null; // TODO initialise it
+
+
+ // Icon Lists
+
+ List iconsList=new LinkedList();
+
+ iconsList.add(
+ new DeviceIcon(
+ "image/png", // MimeType
+ 48, //Width
+ 48, // Height
+ 0, // ??
+ 16, // Depth
+ "/icon/light.png", // URL
+ BinaryLight.class.getClassLoader()
+ )
+ );
+
+ icons=(UPnPIcon[])iconsList.toArray(new UPnPIcon[]{});
+
+
+ // Service List
+
+ List servicesList=new LinkedList();
+
+
+ /*
+ SCPDURL=URL to service description
+ controlURL=URL for control
+ eventSubURL=URL for eventing
+ */
+ servicesList.add(
+ new SwitchPower(
+ this,
+ "urn:upnp-org:serviceId:SwitchPower:1",
+ "urn:schemas-upnp-org:service:SwitchPower:1",
+ "1",
+ mySwitchPowerModel
+ )
+ );
+
+ services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+ // Embedded Device List
+
+ //children=new LinkedList();
+
+
+ }
+
+ protected void setupDeviceProperties(){
+ dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:BinaryLight:1");
+ dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Binary Light UPnP Device");
+ dictionary.put(UPnPDevice.MANUFACTURER,"Didier Donsez (Felix team)");
+ dictionary.put(UPnPDevice.MANUFACTURER_URL,"http://www.apache.org/~donsez");
+ dictionary.put(UPnPDevice.MODEL_DESCRIPTION,"Generated Binary Light UPnP Device");
+ dictionary.put(UPnPDevice.MODEL_NAME,"Binary Light");
+ dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+ dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+ dictionary.put(UPnPDevice.SERIAL_NUMBER,"123456789");
+ dictionary.put(UPnPDevice.UDN,getUDN());
+ dictionary.put(UPnPDevice.ID,dictionary.get(UPnPDevice.UDN));
+ dictionary.put(UPnPDevice.UPC,"upc:adele-binarylight");
+ dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+
+ if(parent!=null) {
+ dictionary.put(UPnPDevice.PARENT_UDN,parent.getUDN());
+ }
+
+ if(children!=null && children.size()!=0){
+ String[] childrenUDN=new String[children.size()];
+ Iterator iter=children.iterator();
+ for(int i=0;iter.hasNext();i++){
+ childrenUDN[i]=((AbstractUPnPDevice)iter.next()).getUDN();
+ }
+ dictionary.put(UPnPDevice.CHILDREN_UDN,childrenUDN);
+ }
+
+ }
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/BinaryLight.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/DimmableLight.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/DimmableLight.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/DimmableLight.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/DimmableLight.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,133 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.device;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.upnp.UPnPDevice;
+import org.osgi.service.upnp.UPnPIcon;
+import org.osgi.service.upnp.UPnPService;
+
+import org.apache.felix.upnp.devicegen.util.AbstractUPnPDevice;
+import org.apache.felix.upnp.devicegen.util.DeviceIcon;
+
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.service.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.impl.*;
+
+
+
+
+public class DimmableLight extends AbstractUPnPDevice {
+
+ public DimmableLight(BundleContext context, AbstractUPnPDevice parent) {
+ super(context,parent);
+
+ DEVICE_ID="uuid:adele-dimmablelight";
+
+ // ServiceModel Declaration List
+ SwitchPowerModel mySwitchPowerModel=null; // TODO initialise it
+DimmingModel myDimmingModel=null; // TODO initialise it
+
+
+ // Icon Lists
+
+ List iconsList=new LinkedList();
+
+ iconsList.add(
+ new DeviceIcon(
+ "image/png", // MimeType
+ 48, //Width
+ 48, // Height
+ 0, // ??
+ 16, // Depth
+ "/icon/light.png", // URL
+ DimmableLight.class.getClassLoader()
+ )
+ );
+
+ icons=(UPnPIcon[])iconsList.toArray(new UPnPIcon[]{});
+
+
+ // Service List
+
+ List servicesList=new LinkedList();
+
+
+ /*
+ SCPDURL=URL to service description
+ controlURL=URL for control
+ eventSubURL=URL for eventing
+ */
+ servicesList.add(
+ new SwitchPower(
+ this,
+ "urn:upnp-org:serviceId:SwitchPower:1",
+ "urn:schemas-upnp-org:service:SwitchPower:1",
+ "1",
+ mySwitchPowerModel
+ )
+ );
+
+
+ /*
+ SCPDURL=URL to service description
+ controlURL=URL for control
+ eventSubURL=URL for eventing
+ */
+ servicesList.add(
+ new Dimming(
+ this,
+ "urn:upnp-org:serviceId:Dimming:1",
+ "urn:schemas-upnp-org:service:Dimming:1",
+ "1",
+ myDimmingModel
+ )
+ );
+
+ services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+ // Embedded Device List
+
+ //children=new LinkedList();
+
+
+ }
+
+ protected void setupDeviceProperties(){
+ dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:DimmableLight:1");
+ dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Dimmable Light UPnP Device");
+ dictionary.put(UPnPDevice.MANUFACTURER,"Didier Donsez (Felix team)");
+ dictionary.put(UPnPDevice.MANUFACTURER_URL,"http://www.apache.org/~donsez");
+ dictionary.put(UPnPDevice.MODEL_DESCRIPTION,"Generated Dimmable Light UPnP Device");
+ dictionary.put(UPnPDevice.MODEL_NAME,"Dimmable Light");
+ dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+ dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+ dictionary.put(UPnPDevice.SERIAL_NUMBER,"123456789");
+ dictionary.put(UPnPDevice.UDN,getUDN());
+ dictionary.put(UPnPDevice.ID,dictionary.get(UPnPDevice.UDN));
+ dictionary.put(UPnPDevice.UPC,"upc:adele-dimmablelight");
+ dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+
+ if(parent!=null) {
+ dictionary.put(UPnPDevice.PARENT_UDN,parent.getUDN());
+ }
+
+ if(children!=null && children.size()!=0){
+ String[] childrenUDN=new String[children.size()];
+ Iterator iter=children.iterator();
+ for(int i=0;iter.hasNext();i++){
+ childrenUDN[i]=((AbstractUPnPDevice)iter.next()).getUDN();
+ }
+ dictionary.put(UPnPDevice.CHILDREN_UDN,childrenUDN);
+ }
+
+ }
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/device/DimmableLight.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/DimmingModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/DimmingModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/DimmingModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/DimmingModelImpl.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,330 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+
+
+public class DimmingModelImpl implements DimmingModel {
+
+ /**
+ * This method is "add description here"
+ * newLoadlevelTarget in parameter
+
+
+ */
+ public void setLoadLevelTarget(
+ int newLoadlevelTarget
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * getLoadlevelTarget out parameter
+
+
+ */
+ public void getLoadLevelTarget(
+ IntegerHolder getLoadlevelTarget
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retLoadlevelStatus out parameter
+
+
+ */
+ public void getLoadLevelStatus(
+ IntegerHolder retLoadlevelStatus
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newOnEffectLevel in parameter
+
+
+ */
+ public void setOnEffectLevel(
+ int newOnEffectLevel
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newOnEffect in parameter
+
+
+ */
+ public void setOnEffect(
+ java.lang.String newOnEffect
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retOnEffect out parameter
+
+ * retOnEffectLevel out parameter
+
+
+ */
+ public void getOnEffectParameters(
+ StringHolder retOnEffect,
+
+IntegerHolder retOnEffectLevel
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stepUp(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stepDown(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void startRampUp(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void startRampDown(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stopRamp(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newLoadLevelTarget in parameter
+
+ * newRampTime in parameter
+
+
+ */
+ public void startRampToLevel(
+ int newLoadLevelTarget,
+
+long newRampTime
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newStepDelta in parameter
+
+
+ */
+ public void setStepDelta(
+ int newStepDelta
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retStepDelta out parameter
+
+
+ */
+ public void getStepDelta(
+ IntegerHolder retStepDelta
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newRampRate in parameter
+
+
+ */
+ public void setRampRate(
+ int newRampRate
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retRampRate out parameter
+
+
+ */
+ public void getRampRate(
+ IntegerHolder retRampRate
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void pauseRamp(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void resumeRamp(
+
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retIsRamping out parameter
+
+
+ */
+ public void getIsRamping(
+ BooleanHolder retIsRamping
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retRampPaused out parameter
+
+
+ */
+ public void getRampPaused(
+ BooleanHolder retRampPaused
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retRampTime out parameter
+
+
+ */
+ public void getRampTime(
+ LongHolder retRampTime
+ ) {
+ // TODO
+
+ }
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Integer getLoadLevelStatusStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Integer getStepDeltaStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Integer getRampRateStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Boolean getIsRampingStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Boolean getRampPausedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/DimmingModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/SwitchPowerModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/SwitchPowerModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/SwitchPowerModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/SwitchPowerModelImpl.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,64 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+
+
+public class SwitchPowerModelImpl implements SwitchPowerModel {
+
+ /**
+ * This method is "add description here"
+ * newTargetValue in parameter
+
+
+ */
+ public void setTarget(
+ boolean newTargetValue
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * retTargetValue out parameter
+
+
+ */
+ public void getTarget(
+ BooleanHolder retTargetValue
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * resultStatus out parameter
+
+
+ */
+ public void getStatus(
+ BooleanHolder resultStatus
+ ) {
+ // TODO
+
+ }
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Boolean getStatusStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/impl/SwitchPowerModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/DimmingModel.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/DimmingModel.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/DimmingModel.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/DimmingModel.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,272 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.model;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+
+
+public interface DimmingModel {
+
+ /**
+ * This method is "add description here"
+ * newLoadlevelTarget in parameter
+
+
+ */
+ public void setLoadLevelTarget(
+ int newLoadlevelTarget
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * getLoadlevelTarget out parameter
+
+
+ */
+ public void getLoadLevelTarget(
+ IntegerHolder getLoadlevelTarget
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retLoadlevelStatus out parameter
+
+
+ */
+ public void getLoadLevelStatus(
+ IntegerHolder retLoadlevelStatus
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newOnEffectLevel in parameter
+
+
+ */
+ public void setOnEffectLevel(
+ int newOnEffectLevel
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newOnEffect in parameter
+
+
+ */
+ public void setOnEffect(
+ java.lang.String newOnEffect
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retOnEffect out parameter
+
+ * retOnEffectLevel out parameter
+
+
+ */
+ public void getOnEffectParameters(
+ StringHolder retOnEffect,
+
+IntegerHolder retOnEffectLevel
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stepUp(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stepDown(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void startRampUp(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void startRampDown(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void stopRamp(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newLoadLevelTarget in parameter
+
+ * newRampTime in parameter
+
+
+ */
+ public void startRampToLevel(
+ int newLoadLevelTarget,
+
+long newRampTime
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newStepDelta in parameter
+
+
+ */
+ public void setStepDelta(
+ int newStepDelta
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retStepDelta out parameter
+
+
+ */
+ public void getStepDelta(
+ IntegerHolder retStepDelta
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newRampRate in parameter
+
+
+ */
+ public void setRampRate(
+ int newRampRate
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retRampRate out parameter
+
+
+ */
+ public void getRampRate(
+ IntegerHolder retRampRate
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void pauseRamp(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+
+ */
+ public void resumeRamp(
+
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retIsRamping out parameter
+
+
+ */
+ public void getIsRamping(
+ BooleanHolder retIsRamping
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retRampPaused out parameter
+
+
+ */
+ public void getRampPaused(
+ BooleanHolder retRampPaused
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retRampTime out parameter
+
+
+ */
+ public void getRampTime(
+ LongHolder retRampTime
+ );
+ // TODO return the type of the return argument when specified
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Integer getLoadLevelStatusStateVariableValue();
+
+ public java.lang.Integer getStepDeltaStateVariableValue();
+
+ public java.lang.Integer getRampRateStateVariableValue();
+
+ public java.lang.Boolean getIsRampingStateVariableValue();
+
+ public java.lang.Boolean getRampPausedStateVariableValue();
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/DimmingModel.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/SwitchPowerModel.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/SwitchPowerModel.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/SwitchPowerModel.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/SwitchPowerModel.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,54 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.model;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+
+
+public interface SwitchPowerModel {
+
+ /**
+ * This method is "add description here"
+ * newTargetValue in parameter
+
+
+ */
+ public void setTarget(
+ boolean newTargetValue
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * retTargetValue out parameter
+
+
+ */
+ public void getTarget(
+ BooleanHolder retTargetValue
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * resultStatus out parameter
+
+
+ */
+ public void getStatus(
+ BooleanHolder resultStatus
+ );
+ // TODO return the type of the return argument when specified
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Boolean getStatusStateVariableValue();
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/model/SwitchPowerModel.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/Dimming.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/Dimming.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/Dimming.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/Dimming.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,2083 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.impl.*;
+
+
+
+public class Dimming extends AbstractUPnPService {
+
+
+ private DimmingModel model;
+
+ /**
+ * constructor
+ */
+ public Dimming(
+ UPnPDevice upnpDevice,
+ String serviceId,
+ String serviceType,
+ String version,
+ DimmingModel model
+ ){
+ super(
+ upnpDevice,
+ serviceId,
+ serviceType,
+ version
+ );
+ this.model=model;
+
+
+ stateVariables=new HashMap();
+
+
+
+ stateVariables.put(
+ "LoadLevelTarget",
+ new LoadLevelTargetStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "LoadLevelStatus",
+ new LoadLevelStatusStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "MinLevel",
+ new MinLevelStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "OnEffectLevel",
+ new OnEffectLevelStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "OnEffect",
+ new OnEffectStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ValidOutputValues",
+ new ValidOutputValuesStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "StepDelta",
+ new StepDeltaStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "RampRate",
+ new RampRateStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "RampTime",
+ new RampTimeStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "IsRamping",
+ new IsRampingStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "RampPaused",
+ new RampPausedStateVariable(this,model)
+ );
+
+ actions=new HashMap();
+
+
+
+ actions.put(
+ "SetLoadLevelTarget",
+ new SetLoadLevelTargetAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetLoadLevelTarget",
+ new GetLoadLevelTargetAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetLoadLevelStatus",
+ new GetLoadLevelStatusAction(this,model)
+ );
+
+
+
+ actions.put(
+ "SetOnEffectLevel",
+ new SetOnEffectLevelAction(this,model)
+ );
+
+
+
+ actions.put(
+ "SetOnEffect",
+ new SetOnEffectAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetOnEffectParameters",
+ new GetOnEffectParametersAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StepUp",
+ new StepUpAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StepDown",
+ new StepDownAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StartRampUp",
+ new StartRampUpAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StartRampDown",
+ new StartRampDownAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StopRamp",
+ new StopRampAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StartRampToLevel",
+ new StartRampToLevelAction(this,model)
+ );
+
+
+
+ actions.put(
+ "SetStepDelta",
+ new SetStepDeltaAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetStepDelta",
+ new GetStepDeltaAction(this,model)
+ );
+
+
+
+ actions.put(
+ "SetRampRate",
+ new SetRampRateAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetRampRate",
+ new GetRampRateAction(this,model)
+ );
+
+
+
+ actions.put(
+ "PauseRamp",
+ new PauseRampAction(this,model)
+ );
+
+
+
+ actions.put(
+ "ResumeRamp",
+ new ResumeRampAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetIsRamping",
+ new GetIsRampingAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetRampPaused",
+ new GetRampPausedAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetRampTime",
+ new GetRampTimeAction(this,model)
+ );
+
+ }
+
+ // UPnPStateVariable classes
+
+
+
+// class LoadLevelTargetStateVariable
+public class LoadLevelTargetStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="LoadLevelTarget";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public LoadLevelTargetStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class LoadLevelStatusStateVariable
+public class LoadLevelStatusStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="LoadLevelStatus";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public LoadLevelStatusStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getLoadLevelStatusStateVariableValue();
+
+ }
+};
+
+
+// class MinLevelStateVariable
+public class MinLevelStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="MinLevel";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public MinLevelStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class OnEffectLevelStateVariable
+public class OnEffectLevelStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="OnEffectLevel";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public OnEffectLevelStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 100
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class OnEffectStateVariable
+public class OnEffectStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="OnEffect";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public OnEffectStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for Default
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ /*
+ List allowedValueList=new LinkedList();
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","OnEffectLevel"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","LastSetting"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Default"));
+
+ this.setallowedValueList(allowedValueList);
+ */
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class ValidOutputValuesStateVariable
+public class ValidOutputValuesStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="ValidOutputValues";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public ValidOutputValuesStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class StepDeltaStateVariable
+public class StepDeltaStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="StepDelta";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public StepDeltaStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for Manufacturer defined default value
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 1
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getStepDeltaStateVariableValue();
+
+ }
+};
+
+
+// class RampRateStateVariable
+public class RampRateStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="RampRate";
+ public final static String DATATYPE="ui1";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public RampRateStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 100
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getRampRateStateVariableValue();
+
+ }
+};
+
+
+// class RampTimeStateVariable
+public class RampTimeStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="RampTime";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public RampTimeStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for 0
+ null, // TODO maximum changed for 4294967295
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class IsRampingStateVariable
+public class IsRampingStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="IsRamping";
+ public final static String DATATYPE="boolean";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public IsRampingStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getIsRampingStateVariableValue();
+
+ }
+};
+
+
+// class RampPausedStateVariable
+public class RampPausedStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="RampPaused";
+ public final static String DATATYPE="boolean";
+
+ // HERE specific state variable members
+ private DimmingModel model;
+
+ public RampPausedStateVariable(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getRampPausedStateVariableValue();
+
+ }
+};
+
+
+ // UPnPAction classes
+
+
+
+public class SetLoadLevelTargetAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public SetLoadLevelTargetAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "SetLoadLevelTarget",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newLoadlevelTarget",
+ upnpService.getStateVariable("LoadLevelTarget")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Integer newLoadlevelTarget = (java.lang.Integer) _args.get("newLoadlevelTarget");
+
+
+ // invoke model
+
+ model.setLoadLevelTarget(
+ IntegerHolder.toValue(
+ newLoadlevelTarget)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetLoadLevelTargetAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetLoadLevelTargetAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetLoadLevelTarget",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "GetLoadlevelTarget",
+ upnpService.getStateVariable("LoadLevelTarget")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ IntegerHolder getLoadlevelTarget = new IntegerHolder();
+
+
+ // invoke model
+
+ model.getLoadLevelTarget(
+ getLoadlevelTarget
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("GetLoadlevelTarget",getLoadlevelTarget.getObject());
+ // java.lang.Integer
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetLoadLevelStatusAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetLoadLevelStatusAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetLoadLevelStatus",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retLoadlevelStatus",
+ upnpService.getStateVariable("LoadLevelStatus")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ IntegerHolder retLoadlevelStatus = new IntegerHolder();
+
+
+ // invoke model
+
+ model.getLoadLevelStatus(
+ retLoadlevelStatus
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retLoadlevelStatus",retLoadlevelStatus.getObject());
+ // java.lang.Integer
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class SetOnEffectLevelAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public SetOnEffectLevelAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "SetOnEffectLevel",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newOnEffectLevel",
+ upnpService.getStateVariable("OnEffectLevel")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Integer newOnEffectLevel = (java.lang.Integer) _args.get("newOnEffectLevel");
+
+
+ // invoke model
+
+ model.setOnEffectLevel(
+ IntegerHolder.toValue(
+ newOnEffectLevel)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class SetOnEffectAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public SetOnEffectAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "SetOnEffect",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newOnEffect",
+ upnpService.getStateVariable("OnEffect")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.String newOnEffect = (java.lang.String) _args.get("newOnEffect");
+
+
+ // invoke model
+
+ model.setOnEffect(
+ StringHolder.toValue(
+ newOnEffect)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetOnEffectParametersAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetOnEffectParametersAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetOnEffectParameters",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retOnEffect",
+ upnpService.getStateVariable("OnEffect")
+ );
+
+ addOutArg(
+ "retOnEffectLevel",
+ upnpService.getStateVariable("OnEffectLevel")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder retOnEffect = new StringHolder();
+ IntegerHolder retOnEffectLevel = new IntegerHolder();
+
+
+ // invoke model
+
+ model.getOnEffectParameters(
+ retOnEffect,
+
+retOnEffectLevel
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retOnEffect",retOnEffect.getObject());
+ // java.lang.String
+ _result.put("retOnEffectLevel",retOnEffectLevel.getObject());
+ // java.lang.Integer
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StepUpAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StepUpAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StepUp",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.stepUp(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StepDownAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StepDownAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StepDown",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.stepDown(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StartRampUpAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StartRampUpAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StartRampUp",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.startRampUp(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StartRampDownAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StartRampDownAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StartRampDown",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.startRampDown(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StopRampAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StopRampAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StopRamp",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.stopRamp(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StartRampToLevelAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public StartRampToLevelAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "StartRampToLevel",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newLoadLevelTarget",
+ upnpService.getStateVariable("LoadLevelTarget")
+ );
+
+ addInArg(
+ "newRampTime",
+ upnpService.getStateVariable("RampTime")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Integer newLoadLevelTarget = (java.lang.Integer) _args.get("newLoadLevelTarget");
+ java.lang.Long newRampTime = (java.lang.Long) _args.get("newRampTime");
+
+
+ // invoke model
+
+ model.startRampToLevel(
+ IntegerHolder.toValue(
+ newLoadLevelTarget)
+ ,
+
+LongHolder.toValue(
+ newRampTime)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class SetStepDeltaAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public SetStepDeltaAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "SetStepDelta",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newStepDelta",
+ upnpService.getStateVariable("StepDelta")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Integer newStepDelta = (java.lang.Integer) _args.get("newStepDelta");
+
+
+ // invoke model
+
+ model.setStepDelta(
+ IntegerHolder.toValue(
+ newStepDelta)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetStepDeltaAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetStepDeltaAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetStepDelta",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retStepDelta",
+ upnpService.getStateVariable("StepDelta")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ IntegerHolder retStepDelta = new IntegerHolder();
+
+
+ // invoke model
+
+ model.getStepDelta(
+ retStepDelta
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retStepDelta",retStepDelta.getObject());
+ // java.lang.Integer
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class SetRampRateAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public SetRampRateAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "SetRampRate",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newRampRate",
+ upnpService.getStateVariable("RampRate")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Integer newRampRate = (java.lang.Integer) _args.get("newRampRate");
+
+
+ // invoke model
+
+ model.setRampRate(
+ IntegerHolder.toValue(
+ newRampRate)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetRampRateAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetRampRateAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetRampRate",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retRampRate",
+ upnpService.getStateVariable("RampRate")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ IntegerHolder retRampRate = new IntegerHolder();
+
+
+ // invoke model
+
+ model.getRampRate(
+ retRampRate
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retRampRate",retRampRate.getObject());
+ // java.lang.Integer
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class PauseRampAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public PauseRampAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "PauseRamp",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.pauseRamp(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class ResumeRampAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public ResumeRampAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "ResumeRamp",
+ ""
+ );
+ this.model=model;
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+
+
+ // invoke model
+
+ model.resumeRamp(
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetIsRampingAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetIsRampingAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetIsRamping",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retIsRamping",
+ upnpService.getStateVariable("IsRamping")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ BooleanHolder retIsRamping = new BooleanHolder();
+
+
+ // invoke model
+
+ model.getIsRamping(
+ retIsRamping
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retIsRamping",retIsRamping.getObject());
+ // java.lang.Boolean
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetRampPausedAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetRampPausedAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetRampPaused",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retRampPaused",
+ upnpService.getStateVariable("RampPaused")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ BooleanHolder retRampPaused = new BooleanHolder();
+
+
+ // invoke model
+
+ model.getRampPaused(
+ retRampPaused
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retRampPaused",retRampPaused.getObject());
+ // java.lang.Boolean
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetRampTimeAction extends AbstractUPnPAction {
+
+ DimmingModel model;
+
+ // HERE specific action members
+
+ public GetRampTimeAction(
+ UPnPService upnpService,
+ DimmingModel model
+ ){
+ super(
+ upnpService,
+ "GetRampTime",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "retRampTime",
+ upnpService.getStateVariable("RampTime")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ LongHolder retRampTime = new LongHolder();
+
+
+ // invoke model
+
+ model.getRampTime(
+ retRampTime
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("retRampTime",retRampTime.getObject());
+ // java.lang.Long
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/Dimming.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/SwitchPower.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/SwitchPower.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/SwitchPower.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/SwitchPower.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,380 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.lightingcontrols.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.lightingcontrols.model.*;
+import org.apache.felix.upnp.devicegen.lightingcontrols.impl.*;
+
+
+
+public class SwitchPower extends AbstractUPnPService {
+
+
+ private SwitchPowerModel model;
+
+ /**
+ * constructor
+ */
+ public SwitchPower(
+ UPnPDevice upnpDevice,
+ String serviceId,
+ String serviceType,
+ String version,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpDevice,
+ serviceId,
+ serviceType,
+ version
+ );
+ this.model=model;
+
+
+ stateVariables=new HashMap();
+
+
+
+ stateVariables.put(
+ "Target",
+ new TargetStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "Status",
+ new StatusStateVariable(this,model)
+ );
+
+ actions=new HashMap();
+
+
+
+ actions.put(
+ "SetTarget",
+ new SetTargetAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetTarget",
+ new GetTargetAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetStatus",
+ new GetStatusAction(this,model)
+ );
+
+ }
+
+ // UPnPStateVariable classes
+
+
+
+// class TargetStateVariable
+public class TargetStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="Target";
+ public final static String DATATYPE="boolean";
+
+ // HERE specific state variable members
+ private SwitchPowerModel model;
+
+ public TargetStateVariable(
+ UPnPService upnpService,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class StatusStateVariable
+public class StatusStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="Status";
+ public final static String DATATYPE="boolean";
+
+ // HERE specific state variable members
+ private SwitchPowerModel model;
+
+ public StatusStateVariable(
+ UPnPService upnpService,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for 0
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getStatusStateVariableValue();
+
+ }
+};
+
+
+ // UPnPAction classes
+
+
+
+public class SetTargetAction extends AbstractUPnPAction {
+
+ SwitchPowerModel model;
+
+ // HERE specific action members
+
+ public SetTargetAction(
+ UPnPService upnpService,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpService,
+ "SetTarget",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "newTargetValue",
+ upnpService.getStateVariable("Target")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Boolean newTargetValue = (java.lang.Boolean) _args.get("newTargetValue");
+
+
+ // invoke model
+
+ model.setTarget(
+ BooleanHolder.toValue(
+ newTargetValue)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetTargetAction extends AbstractUPnPAction {
+
+ SwitchPowerModel model;
+
+ // HERE specific action members
+
+ public GetTargetAction(
+ UPnPService upnpService,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpService,
+ "GetTarget",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "RetTargetValue",
+ upnpService.getStateVariable("Target")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ BooleanHolder retTargetValue = new BooleanHolder();
+
+
+ // invoke model
+
+ model.getTarget(
+ retTargetValue
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("RetTargetValue",retTargetValue.getObject());
+ // java.lang.Boolean
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetStatusAction extends AbstractUPnPAction {
+
+ SwitchPowerModel model;
+
+ // HERE specific action members
+
+ public GetStatusAction(
+ UPnPService upnpService,
+ SwitchPowerModel model
+ ){
+ super(
+ upnpService,
+ "GetStatus",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "ResultStatus",
+ upnpService.getStateVariable("Status")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ BooleanHolder resultStatus = new BooleanHolder();
+
+
+ // invoke model
+
+ model.getStatus(
+ resultStatus
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("ResultStatus",resultStatus.getObject());
+ // java.lang.Boolean
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/lightingcontrols/service/SwitchPower.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaRenderer.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaRenderer.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaRenderer.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaRenderer.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,150 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.media.device;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.upnp.UPnPDevice;
+import org.osgi.service.upnp.UPnPIcon;
+import org.osgi.service.upnp.UPnPService;
+
+import org.apache.felix.upnp.devicegen.util.AbstractUPnPDevice;
+import org.apache.felix.upnp.devicegen.util.DeviceIcon;
+
+import org.apache.felix.upnp.devicegen.media.model.*;
+import org.apache.felix.upnp.devicegen.media.service.*;
+import org.apache.felix.upnp.devicegen.media.impl.*;
+
+
+
+
+public class MediaRenderer extends AbstractUPnPDevice {
+
+ public MediaRenderer(BundleContext context, AbstractUPnPDevice parent) {
+ super(context,parent);
+
+ DEVICE_ID="uuid:adele-media-renderer";
+
+ // ServiceModel Declaration List
+ RenderingControlModel myRenderingControlModel=null; // TODO initialise it
+ConnectionManagerModel myConnectionManagerModel=null; // TODO initialise it
+AVTransportModel myAVTransportModel=null; // TODO initialise it
+
+
+ // Icon Lists
+
+ List iconsList=new LinkedList();
+
+ iconsList.add(
+ new DeviceIcon(
+ "image/png", // MimeType
+ 48, //Width
+ 48, // Height
+ 0, // ??
+ 16, // Depth
+ "/icon/MediaPlayer.png", // URL
+ MediaRenderer.class.getClassLoader()
+ )
+ );
+
+ icons=(UPnPIcon[])iconsList.toArray(new UPnPIcon[]{});
+
+
+ // Service List
+
+ List servicesList=new LinkedList();
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new RenderingControl(
+ this,
+ "RenderingControl",
+ "urn:schemas-upnp-org:service:RenderingControl:1",
+ "1",
+ myRenderingControlModel
+ )
+ );
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new ConnectionManager(
+ this,
+ "ConnectionManager",
+ "urn:schemas-upnp-org:service:ConnectionManager:1",
+ "1",
+ myConnectionManagerModel
+ )
+ );
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new AVTransport(
+ this,
+ "AVTransport",
+ "urn:schemas-upnp-org:service:AVTransport:1",
+ "1",
+ myAVTransportModel
+ )
+ );
+
+ services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+ // Embedded Device List
+
+ //children=new LinkedList();
+
+
+ }
+
+ protected void setupDeviceProperties(){
+ dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:MediaRenderer:1");
+ dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Media Renderer UPnP Device");
+ dictionary.put(UPnPDevice.MANUFACTURER,"Didier Donsez (Felix team)");
+ dictionary.put(UPnPDevice.MANUFACTURER_URL,"http://www.apache.org/~donsez");
+ dictionary.put(UPnPDevice.MODEL_DESCRIPTION,"Generated Media Renderer UPnP Device");
+ dictionary.put(UPnPDevice.MODEL_NAME,"Media Renderer");
+ dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+ dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+ dictionary.put(UPnPDevice.SERIAL_NUMBER,"123456789");
+ dictionary.put(UPnPDevice.UDN,getUDN());
+ dictionary.put(UPnPDevice.ID,dictionary.get(UPnPDevice.UDN));
+ dictionary.put(UPnPDevice.UPC,"upc:adele-media-renderer");
+ dictionary.put(UPnPDevice.PRESENTATION_URL,"");
+
+ if(parent!=null) {
+ dictionary.put(UPnPDevice.PARENT_UDN,parent.getUDN());
+ }
+
+ if(children!=null && children.size()!=0){
+ String[] childrenUDN=new String[children.size()];
+ Iterator iter=children.iterator();
+ for(int i=0;iter.hasNext();i++){
+ childrenUDN[i]=((AbstractUPnPDevice)iter.next()).getUDN();
+ }
+ dictionary.put(UPnPDevice.CHILDREN_UDN,childrenUDN);
+ }
+
+ }
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaRenderer.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaServer.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaServer.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaServer.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaServer.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,150 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.media.device;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.upnp.UPnPDevice;
+import org.osgi.service.upnp.UPnPIcon;
+import org.osgi.service.upnp.UPnPService;
+
+import org.apache.felix.upnp.devicegen.util.AbstractUPnPDevice;
+import org.apache.felix.upnp.devicegen.util.DeviceIcon;
+
+import org.apache.felix.upnp.devicegen.media.model.*;
+import org.apache.felix.upnp.devicegen.media.service.*;
+import org.apache.felix.upnp.devicegen.media.impl.*;
+
+
+
+
+public class MediaServer extends AbstractUPnPDevice {
+
+ public MediaServer(BundleContext context, AbstractUPnPDevice parent) {
+ super(context,parent);
+
+ DEVICE_ID="uuid:adele-media-server";
+
+ // ServiceModel Declaration List
+ AVTransportModel myAVTransportModel=null; // TODO initialise it
+ContentDirectoryModel myContentDirectoryModel=null; // TODO initialise it
+ConnectionManagerModel myConnectionManagerModel=null; // TODO initialise it
+
+
+ // Icon Lists
+
+ List iconsList=new LinkedList();
+
+ iconsList.add(
+ new DeviceIcon(
+ "image/png", // MimeType
+ 48, //Width
+ 48, // Height
+ 0, // ??
+ 16, // Depth
+ "/icon/MediaPlayer.png", // URL
+ MediaServer.class.getClassLoader()
+ )
+ );
+
+ icons=(UPnPIcon[])iconsList.toArray(new UPnPIcon[]{});
+
+
+ // Service List
+
+ List servicesList=new LinkedList();
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new AVTransport(
+ this,
+ "AVTransport",
+ "urn:schemas-upnp-org:service:AVTransport:1",
+ "1",
+ myAVTransportModel
+ )
+ );
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new ContentDirectory(
+ this,
+ "ContentDirectory",
+ "urn:schemas-upnp-org:service:ContentDirectory:1",
+ "1",
+ myContentDirectoryModel
+ )
+ );
+
+
+ /*
+ SCPDURL=
+ controlURL=
+ eventSubURL=
+ */
+ servicesList.add(
+ new ConnectionManager(
+ this,
+ "ConnectionManager",
+ "urn:schemas-upnp-org:service:ConnectionManager:1",
+ "1",
+ myConnectionManagerModel
+ )
+ );
+
+ services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+ // Embedded Device List
+
+ //children=new LinkedList();
+
+
+ }
+
+ protected void setupDeviceProperties(){
+ dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:MediaServer:1");
+ dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Media Server UPnP Device");
+ dictionary.put(UPnPDevice.MANUFACTURER,"Didier Donsez (Felix team)");
+ dictionary.put(UPnPDevice.MANUFACTURER_URL,"http://www.apache.org/~donsez");
+ dictionary.put(UPnPDevice.MODEL_DESCRIPTION,"Generated Media Server UPnP Device");
+ dictionary.put(UPnPDevice.MODEL_NAME,"Media Server");
+ dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+ dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/readme.html");
+ dictionary.put(UPnPDevice.SERIAL_NUMBER,"123456789");
+ dictionary.put(UPnPDevice.UDN,getUDN());
+ dictionary.put(UPnPDevice.ID,dictionary.get(UPnPDevice.UDN));
+ dictionary.put(UPnPDevice.UPC,"upc:adele-media-server");
+ dictionary.put(UPnPDevice.PRESENTATION_URL,"");
+
+ if(parent!=null) {
+ dictionary.put(UPnPDevice.PARENT_UDN,parent.getUDN());
+ }
+
+ if(children!=null && children.size()!=0){
+ String[] childrenUDN=new String[children.size()];
+ Iterator iter=children.iterator();
+ for(int i=0;iter.hasNext();i++){
+ childrenUDN[i]=((AbstractUPnPDevice)iter.next()).getUDN();
+ }
+ dictionary.put(UPnPDevice.CHILDREN_UDN,childrenUDN);
+ }
+
+ }
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/device/MediaServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/impl/AVTransportModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/impl/AVTransportModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/impl/AVTransportModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/impl/AVTransportModelImpl.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,400 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.media.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.media.model.*;
+
+
+public class AVTransportModelImpl implements AVTransportModel {
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * currentURI in parameter
+
+ * currentURIMetaData in parameter
+
+
+ */
+ public void setAVTransportURI(
+ long instanceID,
+
+java.lang.String currentURI,
+
+java.lang.String currentURIMetaData
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * nextURI in parameter
+
+ * nextURIMetaData in parameter
+
+
+ */
+ public void setNextAVTransportURI(
+ long instanceID,
+
+java.lang.String nextURI,
+
+java.lang.String nextURIMetaData
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * nrTracks out parameter
+
+ * mediaDuration out parameter
+
+ * currentURI out parameter
+
+ * currentURIMetaData out parameter
+
+ * nextURI out parameter
+
+ * nextURIMetaData out parameter
+
+ * playMedium out parameter
+
+ * recordMedium out parameter
+
+ * writeStatus out parameter
+
+
+ */
+ public void getMediaInfo(
+ long instanceID,
+
+LongHolder nrTracks,
+
+StringHolder mediaDuration,
+
+StringHolder currentURI,
+
+StringHolder currentURIMetaData,
+
+StringHolder nextURI,
+
+StringHolder nextURIMetaData,
+
+StringHolder playMedium,
+
+StringHolder recordMedium,
+
+StringHolder writeStatus
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * currentTransportState out parameter
+
+ * currentTransportStatus out parameter
+
+ * currentSpeed out parameter
+
+
+ */
+ public void getTransportInfo(
+ long instanceID,
+
+StringHolder currentTransportState,
+
+StringHolder currentTransportStatus,
+
+StringHolder currentSpeed
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * track out parameter
+
+ * trackDuration out parameter
+
+ * trackMetaData out parameter
+
+ * trackURI out parameter
+
+ * relTime out parameter
+
+ * absTime out parameter
+
+ * relCount out parameter
+
+ * absCount out parameter
+
+
+ */
+ public void getPositionInfo(
+ long instanceID,
+
+LongHolder track,
+
+StringHolder trackDuration,
+
+StringHolder trackMetaData,
+
+StringHolder trackURI,
+
+StringHolder relTime,
+
+StringHolder absTime,
+
+IntegerHolder relCount,
+
+IntegerHolder absCount
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * playMedia out parameter
+
+ * recMedia out parameter
+
+ * recQualityModes out parameter
+
+
+ */
+ public void getDeviceCapabilities(
+ long instanceID,
+
+StringHolder playMedia,
+
+StringHolder recMedia,
+
+StringHolder recQualityModes
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * playMode out parameter
+
+ * recQualityMode out parameter
+
+
+ */
+ public void getTransportSettings(
+ long instanceID,
+
+StringHolder playMode,
+
+StringHolder recQualityMode
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+
+ */
+ public void stop(
+ long instanceID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * speed in parameter
+
+
+ */
+ public void play(
+ long instanceID,
+
+java.lang.String speed
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+
+ */
+ public void pause(
+ long instanceID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+
+ */
+ public void record(
+ long instanceID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * unit in parameter
+
+ * target in parameter
+
+
+ */
+ public void seek(
+ long instanceID,
+
+java.lang.String unit,
+
+java.lang.String target
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+
+ */
+ public void next(
+ long instanceID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+
+ */
+ public void previous(
+ long instanceID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * newPlayMode in parameter
+
+
+ */
+ public void setPlayMode(
+ long instanceID,
+
+java.lang.String newPlayMode
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * newRecordQualityMode in parameter
+
+
+ */
+ public void setRecordQualityMode(
+ long instanceID,
+
+java.lang.String newRecordQualityMode
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * instanceID in parameter
+
+ * actions out parameter
+
+
+ */
+ public void getCurrentTransportActions(
+ long instanceID,
+
+StringHolder actions
+ ) {
+ // TODO
+
+ }
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.String getLastChangeStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/media/impl/AVTransportModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native