Plegma API  v2
Yodiwo.API.Plegma.ModelTypeLibrary Class Reference

Public Attributes

const string SwitchOnOffActuator_PortModelId = "OnOffSwitchActuator"
 
const string SwitchOnOffSink_PortModelId = "OnOffSwitchSink"
 
const string SwitchDimmerActuator_PortModelId = "DimmerActuator"
 
const string LightsDimmer_PortModelId = "DimmableLight"
 
const string LightsDimmerNormalized_PortModelId = "NormalizedDimmableLight"
 
const string Button_PortModelId = "Button"
 
const string ButtonFlicSingleClick_PortModelId = "FlicButtonSingleClick"
 
const string ButtonFlicDoubleClick_PortModelId = "FlicButtonDoubleClick"
 
const string ButtonFlicLongClick_PortModelId = "FlicButtonLongClick"
 
const string ButtonAndroid_PortModelId = "AndroidButton"
 
const string TextIO_PortModelId = "TextIO"
 
const string TypeWriter_PortModelId = "TypeWriter"
 
const string Console_PortModelId = "Console"
 
const string CheckboxActuator_PortModelId = "CheckBoxActuator"
 
const string CheckboxSink_PortModelId = "CheckBoxSink"
 
const string Slider_PortModelId = "Slider"
 
const string Progressbar_PortModelId = "ProgressBar"
 
const string LightOnOff_PortModelId = "OnOffLight"
 
const string LocationLatitude_PortModelId = "LocationLatitude"
 
const string LocationLongitude_PortModelId = "LocationLongitude"
 
const string LocationInfo_PortModelId = "LocationInfo"
 
const string LocationAddress_PortModelId = "LocationAddress"
 
const string LocationCountry_PortModelId = "LocationCountry"
 
const string LocationPostalCode_PortModelId = "LocationPostalCode"
 
const string TriggeredLocation_PortModelId = "Location trigger"
 
const string BluetoothPowerStatus_PortModelId = "BluetoothPowerStatus"
 
const string BluetoothConnectionStatus_PortModelId = "BluetoothConnectionStatus"
 
const string BluetoothPairedDevices_PortModelId = "BluetoothPairedDevices"
 
const string BluetoothDiscoveredDevices_PortModelId = "BluetoothDiscoveredDevices"
 
const string TriggeredBluetoothDiscovery_PortModelId = "TriggeredBluetoothDiscovery"
 
const string TriggeredBluetoothPairedDevices_PortModelId = "TriggeredBluetoothPairedDevices"
 
const string AccelerometerSensorX_PortModelId = "X"
 
const string AccelerometerSensorY_PortModelId = "Y"
 
const string AccelerometerSensorZ_PortModelId = "Z"
 
const string GyroscopeSensorX_PortModelId = "X"
 
const string GyroscopeSensorY_PortModelId = "Y"
 
const string GyroscopeSensorZ_PortModelId = "Z"
 
const string RotationSensorW_PortModelId = "W"
 
const string RotationSensorX_PortModelId = "X"
 
const string RotationSensorY_PortModelId = "Y"
 
const string RotationSensorZ_PortModelId = "Z"
 
const string RotationEulerSensorPhi_PortModelId = "Phi"
 
const string RotationEulerSensorTheta_PortModelId = "Theta"
 
const string RotationEulerSensorPsi_PortModelId = "Psi"
 
const string Nfc_PortModelId = "Nfc"
 
const string BrightnessNormalized_PortModelId = "BrightnessNormalized"
 
const string Brightness_PortModelId = "Brightness"
 
const string ProximitySensor_PortModelId = "Proximity"
 
const string WifiStatus_PortModelId = "WifiStatus"
 
const string WifiRssi_PortModelId = "WifiRssi"
 
const string WifiSsid_PortModelId = "WifiSsid"
 
const string WifiBssid_PortModelId = "WifiBssid"
 
const string ShakeDetector_PortModelId = "ShakeDetector"
 
const string Camera_PortModelId = "Camera Feed"
 
const string TriggeredCamera_PortModelId = "Camera trigger"
 
const string OnVifCamera_PortModelId = "OnVifCamera"
 
const string Microphone_PortModelId = "Microphone"
 
const string SipPhone_PortModelId = "SipPhone"
 
const string SpeechRecognition_PortModelId = "SpeechRecognition"
 
const string Text2Speech_PortModelId = "Text2Speech"
 
const string SoundSensor_PortModelId = "SoundSensor"
 
const string HumiditySensor_PortModelId = "HumiditySensor"
 
const string Buzzer_PortModelId = "Buzzer"
 
const string TemperatureSensor_PortModelId = "Temperature"
 
const string UltrasonicSensor_PortModelId = "UltrasonicSensor"
 
const string Lcd_PortModelId = "LCD"
 
const string Relay_PortModelId = "Relay"
 
const string GestureSensorTap_PortModelId = "Tap"
 
const string GestureSensorTouch_PortModelId = "Touch"
 
const string GestureSensorAirwheel_PortModelId = "Airwheel"
 
const string GestureSensorDoubleTap_PortModelId = "DoubleTap"
 
const string GestureSensorFlick_PortModelId = "Flick"
 
const string PositionSensorX_PortModelId = "X"
 
const string PositionSensorY_PortModelId = "Y"
 
const string PositionSensorZ_PortModelId = "Z"
 
const string BeaconReaderUuid_PortModelId = "BeaconUUID"
 
const string BeaconReaderMajorValue_PortModelId = "BeaconMajorValue"
 
const string BeaconReaderMinorValue_PortModelId = "BeaconMinorValue"
 
const string BeaconReaderTxPower_PortModelId = "BeaconTxPower"
 
const string BeaconReaderDistance_PortModelId = "BeaconDistance"
 
const string BeaconReaderRssi_PortModelId = "BeaconRssi"
 
const string BeaconReaderTypeCode_PortModelId = "BeaconTypeCode"
 
const string BeaconReaderTemperature_PortModelId = "BeaconTemperature"
 
const string MagnetometerSensorX_PortModelId = "X"
 
const string MagnetometerSensorY_PortModelId = "Y"
 
const string MagnetometerSensorZ_PortModelId = "Z"
 
const string Gpio_PortModelId = "GPIO"
 
const string GpioInput_PortModelId = "InputGPIO"
 
const string GpioOutput_PortModelId = "OutputGPIO"
 
const string AndroidIntent_PortModelId = "AndroidIntent"
 
const string FleetMgr_PortModelId = "FleetMgr"
 
const string Displayer_PortModelId = "Displayer"
 
const string Gallery_PortModelId = "Gallery"
 
const string Flickr_PortModelId = "Flickr"
 
const string RegionViewer_PortModelId = "RegionViewer"
 
const string DoorlockSensor_PortModelId = "Doorlock sensor"
 
const string AirConditionSensor_PortModelId = "Air condition sensor"
 
const string DoorSensor_PortModelId = "Door sensor"
 
const string SmartPlugSensor_PortModelId = "Smart plug sensor"
 
const string ZWaveSensor_PortModelId = "ZWave sensor"
 
const string DataPlotter_PortModelId = "DataPlotter"
 

Static Public Attributes

static ThingModelType SwitchOnOffActuatorModel
 
static ThingModelType SwitchAndroidSinkModel
 
static ThingModelType SwitchAndroidActuatorModel
 
static ThingModelType SwitchOnOffSinkModel
 
static ThingModelType SwitchDimmerActuatorModel
 
static ThingModelType LightsDimmerModel
 
static ThingModelType LightsDimmerNormalizedModel
 
static ThingModelType LightsAndroidModel
 
static ThingModelType ButtonModel
 
static ThingModelType FlicButtonModel
 
static ThingModelType ButtonAndroidModel
 
static ThingModelType TextIOModel
 
static ThingModelType TypeWriterModel
 
static ThingModelType ConsoleModel
 
static ThingModelType CheckboxActuatorModel
 
static ThingModelType CheckboxSinkModel
 
static ThingModelType SliderModel
 
static ThingModelType ProgressbarModel
 
static ThingModelType LightOnOffModel
 
static ThingModelType LocationCoordinatesModel
 
static ThingModelType LocationInfoModel
 
static ThingModelType TriggeredLocationCoordinatesModel
 
static ThingModelType TriggeredLocationInfoModel
 
static ThingModelType BluetoothModel
 
static ThingModelType TriggeredBluetoothModel
 
static ThingModelType AccelerometerSensorModel
 
static ThingModelType GyroscopeSensorModel
 
static ThingModelType RotationSensorModel
 
static ThingModelType RotationEulerSensorModel
 
static ThingModelType NfcModel
 
static ThingModelType BrightnessNormalizedModel
 
static ThingModelType BrightnessModel
 
static ThingModelType ProximitySensorModel
 
static ThingModelType WifiStatusModel
 
static ThingModelType WifiRssiModel
 
static ThingModelType WifiSsidModel
 
static ThingModelType WifiBssidModel
 
static ThingModelType WifiInfoModel
 
static ThingModelType ShakeDetectorModel
 
static ThingModelType CameraModel
 
static ThingModelType TriggeredCameraModel
 
static ThingModelType OnVifCameraModel
 
static ThingModelType MicrophoneModel
 
static ThingModelType SipPhoneModel
 
static ThingModelType SpeechRecognitionModel
 
static ThingModelType Text2SpeechModel
 
static ThingModelType SoundSensorModel
 
static ThingModelType HumiditySensorModel
 
static ThingModelType BuzzerModel
 
static ThingModelType HTSensorModel
 
static ThingModelType TemperatureSensorModel
 
static ThingModelType UltrasonicSensorModel
 
static ThingModelType LcdModel
 
static ThingModelType RelayActuatorModel
 
static ThingModelType GestureSensorModel
 
static ThingModelType PositionSensorModel
 
static ThingModelType BeaconReaderModel
 
static ThingModelType BeaconReaderSensorsModel
 
static ThingModelType MagnetometerSensorModel
 
static ThingModelType GpioModel
 
static ThingModelType GpioInputModel
 
static ThingModelType GpioOutputModel
 
static ThingModelType AndroidIntentModel
 
static ThingModelType FleetMgrModel
 
static ThingModelType DisplayerModel
 
static ThingModelType GalleryModel
 
static ThingModelType FlickrModel
 
static ThingModelType RegionViewerModel
 
static ThingModelType DoorlockSensorModel
 
static ThingModelType AirConditionSensorModel
 
static ThingModelType DoorSensorModel
 
static ThingModelType SmartPlugSensorModel
 
static ThingModelType ZWaveSensorModel
 
static ThingModelType DataPlotterModel
 

Member Data Documentation

ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.AirConditionSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Air condition sensor",
Id = ThingTypeLibrary.AirConditionSensor_ModelType,
Description = "Air condition sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
AirConditionSensor_PortModelId,
new PortDescription()
{
Description = "Air condition sensor",
Id = AirConditionSensor_PortModelId,
ioDirection =ioPortDirection.InputOutput,
Label = "Air condition sensor",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.AndroidIntentModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Android Intent",
Id = ThingTypeLibrary.AndroidIntentDefault_ModelType,
Description = "Simple Android Intent",
PortModels = new Dictionary<string, PortDescription>()
{
{
AndroidIntent_PortModelId,
new PortDescription()
{
Description = "Android Intent",
Id = AndroidIntent_PortModelId,
ioDirection=ioPortDirection.Input,
Label = "Android Intent",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.BrightnessModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Light Sensor",
Id = ThingTypeLibrary.LightSensorNonNormalized_ModelType,
Description = "Simple Light Sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
Brightness_PortModelId,
new PortDescription()
{
Description = "Light Sensor",
Id = Brightness_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Light Sensor",
State = new StateDescription()
{
Minimum = 0,
Maximum = 255,
Step = 1,
Type = ePortType.Integer,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.BrightnessNormalizedModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Brightness",
Id = ThingTypeLibrary.LightSensor_ModelType,
Description = "Simple Brightness",
PortModels = new Dictionary<string, PortDescription>()
{
{
BrightnessNormalized_PortModelId,
new PortDescription()
{
Description = "Brightness",
Id = BrightnessNormalized_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Brightness",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.DecimalHigh,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ButtonAndroidModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Button",
Id = ThingTypeLibrary.ButtonAndroid_ModelType,
Description = "Simple Button",
PortModels = new Dictionary<string, PortDescription>()
{
{
ButtonAndroid_PortModelId,
new PortDescription
{
Description = "On/Off Actuator",
Id = ButtonAndroid_PortModelId,
ioDirection=ioPortDirection.Output,
Label = "On/Off Actuator",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
},
NumPorts = new Dictionary<string, int>()
{
{ ButtonAndroid_PortModelId, 3}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ButtonModel
static
Initial value:
= new ThingModelType
{
Name = "Button",
Id = ThingTypeLibrary.ButtonDefault_ModelType,
Description = "Simple Button",
PortModels = new Dictionary<string, PortDescription>()
{
{
Button_PortModelId,
new PortDescription
{
Description = "Button",
Id = Button_PortModelId,
ioDirection=ioPortDirection.Output,
Label = "Button",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.BuzzerModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Buzzer",
Id = ThingTypeLibrary.BuzzerDefault_ModelType,
Description = "Buzzer",
PortModels = new Dictionary<string, PortDescription>()
{
{
Buzzer_PortModelId,
new PortDescription()
{
Description = "Buzzer",
Id = Buzzer_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "Buzzer",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Type = ePortType.Decimal,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.CameraModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Camera",
Id = ThingTypeLibrary.CameraDefault_ModelType,
Description = "Simple Camera",
PortModels = new Dictionary<string, PortDescription>()
{
{
Camera_PortModelId,
new PortDescription()
{
Description = "Camera",
Id = Camera_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Camera",
State = new StateDescription()
{
Type = ePortType.BinaryResourceDescriptor,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.CheckboxActuatorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Checkbox Actuator",
Id = ThingTypeLibrary.SwitchActuatorCheckBox_ModelType,
Description = "Simple Checkbox Actuator",
PortModels = new Dictionary<string, PortDescription>()
{
{
CheckboxActuator_PortModelId,
new PortDescription()
{
Description = "Checkbox Actuator",
Id = CheckboxActuator_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Checkbox Actuator",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.CheckboxSinkModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Checkbox Sink",
Id = ThingTypeLibrary.SwitchSinkCheckBox_ModelType,
Description = "Simple Checkbox Sink",
PortModels = new Dictionary<string, PortDescription>
{
{
CheckboxSink_PortModelId,
new PortDescription()
{
Description = "Checkbox Sink",
Id = CheckboxSink_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Checkbox Sink",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ConsoleModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Console",
Id = ThingTypeLibrary.TextConsole_ModelType,
Description = "Simple Console",
PortModels = new Dictionary<string, PortDescription>()
{
{
Console_PortModelId,
new PortDescription()
{
Description = "Console",
Id = Console_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Console",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.DataPlotterModel
static
Initial value:
= new ThingModelType
{
Name = "Data Plotter",
Id = ThingTypeLibrary.DataPlotterDefault_ModelType,
Description = "Data Plotter",
PortModels = new Dictionary<string, PortDescription>()
{
{
DataPlotter_PortModelId,
new PortDescription()
{
Description = "Data Plotter",
Id = DataPlotter_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Data Plotter",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.DisplayerModel
static
Initial value:
= new ThingModelType
{
Name = "Displayer",
Id = ThingTypeLibrary.DisplayerDefault_ModelType,
Description = "Displayer",
PortModels = new Dictionary<string, PortDescription>()
{
{
Displayer_PortModelId,
new PortDescription()
{
Description = "Displayer",
Id = Displayer_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Displayer",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.DoorlockSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Doorlock sensor",
Id = ThingTypeLibrary.DoorlockSensor_ModelType,
Description = "Doorlock sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
DoorlockSensor_PortModelId,
new PortDescription()
{
Description = "Doorlock sensor",
Id = DoorlockSensor_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "Doorlock sensor",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.DoorSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Door sensor",
Id = ThingTypeLibrary.DoorSensor_ModelType,
Description = "Door sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
DoorSensor_PortModelId,
new PortDescription()
{
Description = "Door sensor",
Id = DoorSensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Door sensor",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.FleetMgrModel
static
Initial value:
= new ThingModelType
{
Name = "Fleet Manager Info",
Id = ThingTypeLibrary.FleetMgrDefault_ModelType,
Description = "Fleet Manager Info",
PortModels = new Dictionary<string, PortDescription>()
{
{
FleetMgr_PortModelId,
new PortDescription()
{
Description = "Fleet Manager Info",
Id = FleetMgr_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Fleet Manager Info",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.FlickrModel
static
Initial value:
= new ThingModelType
{
Name = "Flickr",
Id = ThingTypeLibrary.FlickrDefault_ModelType,
Description = "Flickr",
PortModels = new Dictionary<string, PortDescription>()
{
{
Flickr_PortModelId,
new PortDescription()
{
Description = "Flickr",
Id = Flickr_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Flickr",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.GalleryModel
static
Initial value:
= new ThingModelType
{
Name = "Gallery",
Id = ThingTypeLibrary.GalleryDefault_ModelType,
Description = "Gallery",
PortModels = new Dictionary<string, PortDescription>()
{
{
Gallery_PortModelId,
new PortDescription()
{
Description = "Gallery",
Id = Gallery_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Gallery",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.GpioInputModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Gpio",
Id = ThingTypeLibrary.GpioInput_ModelType,
Description = "Simple Gpio",
PortModels = new Dictionary<string, PortDescription>()
{
{
GpioInput_PortModelId,
new PortDescription()
{
Description = "Gpio",
Id = GpioInput_PortModelId,
Label = "Gpio",
ioDirection = ioPortDirection.Input,
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.GpioModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Gpio",
Id = ThingTypeLibrary.GpioDefault_ModelType,
Description = "Simple Gpio",
PortModels = new Dictionary<string, PortDescription>()
{
{
Gpio_PortModelId,
new PortDescription()
{
Description = "Gpio",
Id = Gpio_PortModelId,
Label = "Gpio",
ioDirection = ioPortDirection.InputOutput,
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.GpioOutputModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Gpio",
Id = ThingTypeLibrary.GpioOutput_ModelType,
Description = "Simple Gpio",
PortModels = new Dictionary<string, PortDescription>()
{
{
GpioOutput_PortModelId,
new PortDescription()
{
Description = "Gpio",
Id = GpioOutput_PortModelId,
Label = "Gpio",
ioDirection = ioPortDirection.Output,
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.HumiditySensorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Humidity Sensor",
Id = ThingTypeLibrary.HumiditySensor_ModelType,
Description = "Simple Humidity Sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
HumiditySensor_PortModelId,
new PortDescription()
{
Description = "Humidity Sensor",
Id = HumiditySensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Humidity Sensor",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 100.0,
Step = 0.01,
Type = ePortType.DecimalHigh,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.LcdModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Lcd",
Id = ThingTypeLibrary.LcdDefault_ModelType,
Description = "Simple Lcd",
PortModels = new Dictionary<string, PortDescription>()
{
{
Lcd_PortModelId,
new PortDescription()
{
Description = "Lcd",
Id = Lcd_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "Lcd",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.LightOnOffModel
static
Initial value:
= new ThingModelType
{
Name = "Simple On/Off Light",
Id = ThingTypeLibrary.LightsBoolean_ModelType,
Description = "Simple On/Off Light",
PortModels = new Dictionary<string, PortDescription>
{
{
LightOnOff_PortModelId,
new PortDescription()
{
Description = "On/Off Light",
Id = LightOnOff_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "On/Off Light",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.LightsAndroidModel
static
Initial value:
= new ThingModelType
{
Name = "Simple normalized Dimmable Lights",
Id = ThingTypeLibrary.LightsAndroid_ModelType,
Description = "Simple normalized Dimmable Lights",
PortModels = new Dictionary<string, PortDescription>()
{
{
LightsDimmerNormalized_PortModelId,
new PortDescription()
{
Description = "Dimmable Light",
Id = LightsDimmerNormalized_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Dimmable Light",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.Decimal,
}
}
}
},
NumPorts = new Dictionary<string, int>()
{
{ LightsDimmerNormalized_PortModelId, 3}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.LightsDimmerModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Dimmer Sink",
Id = ThingTypeLibrary.LightsDimmer_ModelType,
Description = "Simple Dimmer Sink",
PortModels = new Dictionary<string, PortDescription>()
{
{
LightsDimmer_PortModelId,
new PortDescription()
{
Description = "Dimmer Sink",
Id = LightsDimmer_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Dimmer Sink",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 100.0,
Step = 1.0,
Type = ePortType.Decimal,
}
}
},
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.LightsDimmerNormalizedModel
static
Initial value:
= new ThingModelType
{
Name = "Simple normalized Dimmable Lights",
Id = ThingTypeLibrary.LightsDimmerNormalized_ModelType,
Description = "Simple normalized Dimmable Lights",
PortModels = new Dictionary<string, PortDescription>()
{
{
LightsDimmerNormalized_PortModelId,
new PortDescription()
{
Description = "Dimmable Light",
Id = LightsDimmerNormalized_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "Dimmable Light",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.Decimal,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.MicrophoneModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Microphone",
Id = ThingTypeLibrary.MicrophoneDefault_ModelType,
Description = "Simple Microphone",
PortModels = new Dictionary<string, PortDescription>()
{
{
Microphone_PortModelId,
new PortDescription()
{
Description = "Microphone",
Id = Microphone_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Microphone",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.NfcModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Nfc",
Id = ThingTypeLibrary.NfcDefault_ModelType,
Description = "Simple Nfc",
PortModels = new Dictionary<string, PortDescription>()
{
{
Nfc_PortModelId,
new PortDescription()
{
Description = "Nfc",
Id = Nfc_PortModelId,
ioDirection=ioPortDirection.Output,
Label = "Nfc",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ProgressbarModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Progress Bar",
Id = ThingTypeLibrary.SeekbarProgressbar_ModelType,
Description = "Simple Progress Bar",
PortModels = new Dictionary<string, PortDescription>
{
{
Progressbar_PortModelId,
new PortDescription()
{
Description = "Progress bar",
Id = Progressbar_PortModelId,
Label = "Progress bar",
ioDirection = ioPortDirection.Input,
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.DecimalHigh,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ProximitySensorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Proximity",
Id = ThingTypeLibrary.ProximitySensor_ModelType,
Description = "Simple Proximity",
PortModels = new Dictionary<string, PortDescription>()
{
{
ProximitySensor_PortModelId,
new PortDescription()
{
Description = "Proximity",
Id = ProximitySensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Proximity",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.RegionViewerModel
static
Initial value:
= new ThingModelType
{
Name = "RegionViewer",
Id = ThingTypeLibrary.RegionViewerDefault_ModelType,
Description = "RegionViewer",
PortModels = new Dictionary<string, PortDescription>()
{
{
RegionViewer_PortModelId,
new PortDescription()
{
Description = "RegionViewer",
Id = RegionViewer_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "RegionViewer",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.RelayActuatorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Relay",
Id = ThingTypeLibrary.SwitchActuatorRelay_ModelType,
Description = "Simple Relay",
PortModels = new Dictionary<string, PortDescription>()
{
{
Relay_PortModelId,
new PortDescription()
{
Description = "Relay",
Id = Relay_PortModelId ,
ioDirection = ioPortDirection.Output,
Label = "Relay",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ShakeDetectorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Shake Detector",
Id = ThingTypeLibrary.ShakeDetectorSensor_ModelType,
Description = "Simple Shake Detector",
PortModels = new Dictionary<string, PortDescription>()
{
{
ShakeDetector_PortModelId, new PortDescription()
{
Description = "Shake Detector",
Id = ShakeDetector_PortModelId,
ioDirection=ioPortDirection.Output,
Label = "Shake Detector",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SipPhoneModel
static
Initial value:
= new ThingModelType
{
Name = "Simple SipPhone",
Id = ThingTypeLibrary.SipPhoneDefault_ModelType,
Description = "Simple SipPhone",
PortModels = new Dictionary<string, PortDescription>()
{
{
SipPhone_PortModelId,
new PortDescription()
{
Description = "SipPhone",
Id = SipPhone_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "SipPhone",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SliderModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Slider",
Id = ThingTypeLibrary.SeekbarSlider_ModelType,
Description = "Simple Slider",
PortModels = new Dictionary<string, PortDescription>
{
{
Slider_PortModelId,
new PortDescription()
{
Description = "Slider",
Id = Slider_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Slider",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.Decimal,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SmartPlugSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Smart plug sensor",
Id = ThingTypeLibrary.SmartPlugSensor_ModelType,
Description = "Smart plug sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
SmartPlugSensor_PortModelId,
new PortDescription()
{
Description = "Smart plug sensor",
Id = SmartPlugSensor_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "Smart plug sensor",
State = new StateDescription()
{
Type = ePortType.Boolean,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SoundSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Sound Sensor",
Id = ThingTypeLibrary.SoundSensor_ModelType,
Description = "Simple Sound Sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
SoundSensor_PortModelId,
new PortDescription()
{
Description = "Sound Sensor",
Id = SoundSensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Sound Sensor",
State = new StateDescription()
{
Minimum = 0,
Maximum = 255,
Step = 1,
Type = ePortType.Integer,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SpeechRecognitionModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Speech Recognition",
Id = ThingTypeLibrary.SpeechRecognitionDefault_ModelType,
Description = "Simple SpeechRecognition",
PortModels = new Dictionary<string, PortDescription>()
{
{
SpeechRecognition_PortModelId,
new PortDescription()
{
Description = "SpeechRecognition",
Id = SpeechRecognition_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "SpeechRecognition",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SwitchAndroidActuatorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple On/Off Switch Actuator",
Id = ThingTypeLibrary.SwitchActuator_ModelType,
Description = "Simple On/Off Switch Actuator",
PortModels = new Dictionary<string, PortDescription>()
{
{
SwitchOnOffActuator_PortModelId,
new PortDescription()
{
Description = "On/Off",
Id = SwitchOnOffActuator_PortModelId,
Label = "On/Off",
ioDirection = ioPortDirection.Output,
State = new StateDescription()
{
Type = ePortType.Boolean,
},
}
}
},
NumPorts = new Dictionary<string, int>()
{
{ SwitchOnOffActuator_PortModelId, 3}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SwitchAndroidSinkModel
static
Initial value:
= new ThingModelType
{
Name = "Simple On/Off Switch Sink",
Id = ThingTypeLibrary.SwitchSinkAndroid_ModelType,
Description = "Simple On/Off Switch Sink",
PortModels = new Dictionary<string, PortDescription>()
{
{
SwitchOnOffSink_PortModelId,
new PortDescription()
{
Description = "On/Off",
Id = SwitchOnOffSink_PortModelId,
Label = "On/Off",
ioDirection = ioPortDirection.Input,
State = new StateDescription()
{
Type = ePortType.Boolean,
},
}
}
},
NumPorts = new Dictionary<string, int>()
{
{ SwitchOnOffSink_PortModelId, 3},
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SwitchDimmerActuatorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Dimmer Actuator",
Id = ThingTypeLibrary.SwitchActuatorDimmer_ModelType,
Description = "Simple Dimmer Actuator",
PortModels = new Dictionary<string, PortDescription>()
{
{
SwitchDimmerActuator_PortModelId,
new PortDescription()
{
Description = "Dimmer Actuator",
Id = SwitchDimmerActuator_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Dimmer Actuator",
State = new StateDescription()
{
Minimum = 0.0,
Maximum = 1.0,
Step = 0.01,
Type = ePortType.Decimal,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SwitchOnOffActuatorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple On/Off Switch Actuator",
Id = ThingTypeLibrary.SwitchActuator_ModelType,
Description = "Simple On/Off Switch Actuator",
PortModels = new Dictionary<string, PortDescription>()
{
{
SwitchOnOffActuator_PortModelId,
new PortDescription()
{
Description = "On/Off",
Id = SwitchOnOffActuator_PortModelId,
Label = "On/Off",
ioDirection = ioPortDirection.Output,
State = new StateDescription()
{
Type = ePortType.Boolean,
},
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.SwitchOnOffSinkModel
static
Initial value:
= new ThingModelType
{
Name = "Simple On/Off Switch Sink",
Id = ThingTypeLibrary.SwitchSink_ModelType,
Description = "On/Off Switch Sink",
PortModels = new Dictionary<string, PortDescription>()
{
{
SwitchOnOffSink_PortModelId,
new PortDescription()
{
Description = "On/Off",
Id = SwitchOnOffSink_PortModelId,
ioDirection = ioPortDirection.Input,
Label = "On/Off",
State = new StateDescription()
{
Type = ePortType.Boolean,
},
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.TemperatureSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Temperature Sensor",
Id = ThingTypeLibrary.TemperatureSensor_ModelType,
Description = "Temperature Sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
TemperatureSensor_PortModelId,
new PortDescription()
{
Description = "Temperature Sensor",
Id = TemperatureSensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Temperature Sensor",
State = new StateDescription()
{
Type = ePortType.DecimalHigh,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.Text2SpeechModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Text to Speech",
Id = ThingTypeLibrary.Text2SpeechDefault_ModelType,
Description = "Simple Text to Speech",
PortModels = new Dictionary<string, PortDescription>()
{
{
Text2Speech_PortModelId,
new PortDescription()
{
Description = "Text to Speech",
Id = Text2Speech_PortModelId,
ioDirection =ioPortDirection.Input,
Label = "Text to Speech",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.TextIOModel
static
Initial value:
= new ThingModelType
{
Name = "Text I/O",
Id = ThingTypeLibrary.TextIO_ModelType,
Description = "Text I/O",
PortModels = new Dictionary<string, PortDescription>()
{
{
TextIO_PortModelId,
new PortDescription()
{
Description = "TextIO",
Id = TextIO_PortModelId,
ioDirection = ioPortDirection.InputOutput,
Label = "TextIO",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.TypeWriterModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Typewriter",
Id = ThingTypeLibrary.TextTypewriter_ModelType,
Description = "Simple Typewriter",
PortModels = new Dictionary<string, PortDescription>()
{
{
TypeWriter_PortModelId,
new PortDescription()
{
Description = "Typewriter",
Id = TypeWriter_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Typewriter",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.UltrasonicSensorModel
static
Initial value:
= new ThingModelType
{
Name = "Simple Ultrasonic Sensor",
Id = ThingTypeLibrary.ProximityUltrasonicSensor_ModelType,
Description = "Simple Ultrasonic Sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
UltrasonicSensor_PortModelId,
new PortDescription()
{
Description = "Ultrasonic Sensor",
Id = UltrasonicSensor_PortModelId,
ioDirection =ioPortDirection.Output,
Label = "Ultrasonic Sensor",
State = new StateDescription()
{
Minimum = 0,
Maximum = 255,
Step = 1,
Type = ePortType.Integer,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.WifiBssidModel
static
Initial value:
= new ThingModelType
{
Name = "Wifi Bssid",
Id = ThingTypeLibrary.WifiBssid_ModelType,
Description = "Wifi Bssid",
PortModels = new Dictionary<string, PortDescription>()
{
{
WifiBssid_PortModelId,
new PortDescription()
{
Description = "Wifi Bssid",
ioDirection = ioPortDirection.Output,
Id = WifiBssid_PortModelId,
Label = "Wifi Bssid",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.WifiRssiModel
static
Initial value:
= new ThingModelType
{
Name = "Wifi Rssi",
Id = ThingTypeLibrary.WifiRssi_ModelType,
Description = "Wifi Rssi",
PortModels = new Dictionary<string, PortDescription>()
{
{
WifiRssi_PortModelId,
new PortDescription()
{
Description = "Wifi Rssi",
Id = WifiRssi_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Wifi Rssi",
State = new StateDescription()
{
Type = ePortType.Integer,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.WifiSsidModel
static
Initial value:
= new ThingModelType
{
Name = "Wifi Ssid",
Id = ThingTypeLibrary.WifiSsid_ModelType,
Description = "Wifi Ssid",
PortModels = new Dictionary<string, PortDescription>()
{
{
WifiSsid_PortModelId,
new PortDescription()
{
Description = "Wifi Ssid",
Id = WifiSsid_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Wifi Ssid",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.WifiStatusModel
static
Initial value:
= new ThingModelType
{
Name = "Wifi Status",
Id = ThingTypeLibrary.WifiStatus_ModelType,
Description = "Wifi Status",
PortModels = new Dictionary<string, PortDescription>()
{
{
WifiStatus_PortModelId,
new PortDescription()
{
Description = "Wifi Status",
Id = WifiStatus_PortModelId,
ioDirection = ioPortDirection.Output,
Label = "Wifi Status",
State = new StateDescription()
{
Type = ePortType.String,
}
}
}
}
}
ThingModelType Yodiwo.API.Plegma.ModelTypeLibrary.ZWaveSensorModel
static
Initial value:
= new ThingModelType
{
Name = "ZWave sensor",
Id = ThingTypeLibrary.ZWaveSensor_ModelType,
Description = "ZWave sensor",
PortModels = new Dictionary<string, PortDescription>()
{
{
ZWaveSensor_PortModelId,
new PortDescription()
{
Description = "ZWave sensor",
Id = ZWaveSensor_PortModelId,
ioDirection =ioPortDirection.Undefined,
Label = "ZWave sensor",
State = new StateDescription()
{
Type = ePortType.Undefined,
}
}
}
}
}

The documentation for this class was generated from the following file: