C# Class hacs.JSONHandlers.JSONData

this simple class creates JSON Output according to previously stored sensor logs
Exibir arquivo Open project: bietiekay/hacs Class Usage Examples

Public Methods

Method Description
GenerateDataJSONOutput ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String

generates JSON dataset from sensor data

GenerateDataJSONOutputWithoutInterpolation ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String

generates JSON dataset from sensor data

GenerateDataJSONOutput_LastEntryOnly ( ObjectTypes DataType, String ObjectTypeName, String ObjectName ) : String

generates JSON dataset from sensor data

GenerateJSONDataActorStatistics ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String

generates JSON dataset from sensor data

GenerateJSONDataActorStatus ( ActorsStatusOutputTypes OutputType, String ObjectName ) : String
GeneratePowerSensorJSONOutput ( PowerSensorOutputs OutputType, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String
JSONData ( sones.storage.TinyOnDiskStorage sensor_data_storage, ConsoleOutputLogger Logger ) : System

Private Methods

Method Description
ReadFromCache ( OnDiscAdress adress ) : hacs.xs1.XS1_DataObject

Method Details

GenerateDataJSONOutput() public method

generates JSON dataset from sensor data
public GenerateDataJSONOutput ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String
DataType ObjectTypes
ObjectTypeName String
ObjectName String
StartDateTime System.DateTime
EndDateTime System.DateTime
return String

GenerateDataJSONOutputWithoutInterpolation() public method

generates JSON dataset from sensor data
public GenerateDataJSONOutputWithoutInterpolation ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String
DataType ObjectTypes
ObjectTypeName String
ObjectName String
StartDateTime System.DateTime
EndDateTime System.DateTime
return String

GenerateDataJSONOutput_LastEntryOnly() public method

generates JSON dataset from sensor data
public GenerateDataJSONOutput_LastEntryOnly ( ObjectTypes DataType, String ObjectTypeName, String ObjectName ) : String
DataType ObjectTypes
ObjectTypeName String
ObjectName String
return String

GenerateJSONDataActorStatistics() public method

generates JSON dataset from sensor data
public GenerateJSONDataActorStatistics ( ObjectTypes DataType, String ObjectTypeName, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String
DataType ObjectTypes
ObjectTypeName String
ObjectName String
StartDateTime System.DateTime
EndDateTime System.DateTime
return String

GenerateJSONDataActorStatus() public method

public GenerateJSONDataActorStatus ( ActorsStatusOutputTypes OutputType, String ObjectName ) : String
OutputType ActorsStatusOutputTypes
ObjectName String
return String

GeneratePowerSensorJSONOutput() public method

public GeneratePowerSensorJSONOutput ( PowerSensorOutputs OutputType, String ObjectName, System.DateTime StartDateTime, System.DateTime EndDateTime ) : String
OutputType PowerSensorOutputs
ObjectName String
StartDateTime System.DateTime
EndDateTime System.DateTime
return String

JSONData() public method

public JSONData ( sones.storage.TinyOnDiskStorage sensor_data_storage, ConsoleOutputLogger Logger ) : System
sensor_data_storage sones.storage.TinyOnDiskStorage
Logger ConsoleOutputLogger
return System