C# Class WFA_psychometric_chart.buildingChartSetting

Datei anzeigen Open project: temcocontrols/T3000_Building_Automation_System Class Usage Examples

Public Properties

Property Type Description
chartDetailList List
default_comfort_zone_of_chart List
deviceInfoForSavingToXML List
enthalpyDataGridView double
humDataGridValue double
indexForWhichChartIsSelected int
indexOfChartSelected int
latValueFromDB double
lb_simulation_mode_display System.Windows.Forms.Label
lineInfoForSavingToXML List
lineInfoFromXMLfile List
listComfortZoneDetail List
listchartComfortZoneInfoSingle List
longValueFromDB double
menuStripNodeInfoValues List
menuStripNodeLineInfoValues List
nodeInfoForSavingToXML List
nodeInfoFromXMLfile List
y_coord_value double

Public Methods

Method Description
AddOrUpdateNewRecord ( string name, DataGridViewCellEventArgs e ) : void
AsyncMethod1ForPullingData ( ) : Task
CalculateYFromXandHumidity ( double xVal, double humidity ) : double
CheckDeviceOnlineOffline ( int deviceID, int Parent_SerialNum ) : bool
CheckSelectedBuilding ( ) : void
ClearComfortZone ( double Tmin, double Tmax, double Hmin, double Hmax ) : void
CountNumberOfItem ( string chartId ) : int
CountingDB_Item ( string db_name ) : int
CreateRequireTableIfNotPresent ( string buildingName ) : void
DataGridView_Show_Data ( ) : void
DeleteChart ( string chartID ) : void
DeleteComfortZoneData ( string id ) : void
DeleteComfortZoneSettingForChart ( string chartID ) : void
DeleteLine ( string lineID ) : void
DeleteNode ( string nodeID ) : void
DeleteNodeDeviceInfo ( string nodeID ) : void
FindPathOfBuildingDB ( ) : void
GetDataFromWeb ( double latValue, double longValue ) : void

This return the different values such as temperatue ,humidity and other parameters.

GetGUID ( ) : string
HumTempCalcByCoordinate ( ) : void
InfoForComfortZoneOfChart ( string chartID ) : void
InitTimerForDevice ( ) : void
InsertChartComfortzoneInfo ( string chartid, string comfortzone_id ) : void
InsertComfortZoneValue ( string name, double min_temp, double max_temp, double min_hum, double max_hum, Color color ) : void

This function helps to insert the comfort zone setting in the database.

InsertLineInfoToDB ( string id, string prevNodeId, string nextNodeId, Color lineColor, Series lineSeriesVal, int linethickness ) : void
InsertNodeInfoToDB ( string id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText, int nodeSizeValue, string deviceinstance, string deviceip, string param1id, string param2id, string param1info, string param2info, string param1type, string param2type ) : void
LoadComfortZone ( string chartid ) : void

load the comfort zone when chart is selected

LoadComfortZoneIfOn ( string chartid ) : void
LoadNodeAndLineFromDB ( int indexValue ) : void

We need have three parameters

LoadNode_LineAndDeviceInfoFromDB ( int indexValue ) : void

This function is for getting node info , correspoing device info for particular node,and line info this is required for saving in xml formate.

PlotComfortZone ( double Tmin, double Tmax, double Hmin, double Hmax, Color c, string name ) : void
PullChartList ( string buildingName ) : void
PullComfortZoneData ( ) : void
PullDataFromDB ( ) : void
PullDataFromHardware ( string device_instance_id, string param1id, string param2id, string param1info, string param2info ) : void
PullLongitudeAndLatitude ( string dbName ) : void
ReDrawLines ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color c, int thickness_value ) : void
ReDrawPoints ( Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText, int marker_size_value ) : void
ReDrawPointsForHardware ( Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText, int marker_size_value ) : void

This function helps to draw the points before loading

ReDrawingLineAndNode ( ) : void
ReDrawingLineAndNodeForScanHardware ( ) : void
ReadDataFromDevice ( int deviceID, uint temp_panID, uint hum_panID, string param1_identifier_type, string param2_identifier_type ) : void

helps to pull the data from the hardware of the device

ReadDeviceInfoForNode ( string nodeID1 ) : void

This get the device info values form the database

ReadNodeAndLineDetails ( string chart_respective_node_id, string chart_respective_line_id, string buildingName ) : void

Getting the values of the database on the chartID

ReadNodeInfoToDelete ( string chartNodeID ) : void

help in reading all the node info for a particular chart

RefreshDataFromDeviceAndWeb ( ) : void
RefreshGraph ( ) : void
ResettingLines ( ) : void
SaveConfiguration ( ) : void
SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
SetNodeWithValuesXYCoord ( string source, string name, string label, Color c1, string comboboxItemText1, double xvalue, double yvalue ) : void
ShowOrHideForComfortZone ( ) : void
UpdateComfortZoneValue ( string id, string name, double min_temp, double max_temp, double min_hum, double max_hum, Color color ) : void
UpdateLineInfoToDB ( string id, string prevNodeId, string nextNodeId, Color lineColor, Series lineSeriesVal, int lineThicknessValue ) : void

This value is edited just now bbk305

UpdateLineInfoToDBWithouSeriesID ( string id, string prevNodeId, string nextNodeId, Color lineColor, int lineThicknessValue ) : void
UpdateNewDataFromDGV ( string name, string chartID ) : void
UpdateNodeInfoToDB ( string id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText, int nodeSizeValue ) : void
addCursorFunctionForLineDisconnectConnect ( MouseEventArgs e ) : void
addTemporarySeries ( ) : void
add_t_pg ( ) : void
buildingChartSetting ( Form1_main f ) : System
deleteDatabaseTable ( string tableName ) : void
enthalpyHumidityCalculatorForXYvalue ( double xVal, double yVal ) : void
insertNewDataFromDGV ( string name ) : void
insertOrUpdateComfortChartSetting ( string chartID, string comfortzone_ID ) : void
loadXMLDoc ( ) : void
plot_by_DBT_Enthalpy ( double dbt, double enthalpy ) : int
plot_by_DBT_HR_process_diagram ( double DBT, double HR ) : int
plot_new_graph ( ) : void
plot_on_graph_values_process_diagram ( double xval, double yval ) : void

plot using x coord(=temp) and y coord (=hum ratio)

pullComfortZoneInfoSingle ( string comfortzoneid ) : void
timer1_Tick_For_Device ( object sender, EventArgs e ) : void
update_comfort_zone_for_chart ( string chartid, string comfortzone_id, string status ) : void

updates the chart info for comfort zone

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CalculateHumidityEnthalpy ( double xVal, double yVal ) : void
ClearChart ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LineDeterctOnMouseMove ( MouseEventArgs e ) : void
NodeSelectionAndRelease ( MouseEventArgs e ) : void
ProcessDiagramMouseMoveFunction ( MouseEventArgs e ) : void
btn_pull_data_Click ( object sender, EventArgs e ) : void

This is pulling the data from the hardware and putting it in the table

btn_reset_graph_Click ( object sender, EventArgs e ) : void
buildingChartSetting_FormClosing ( object sender, FormClosingEventArgs e ) : void
buildingChartSetting_Load ( object sender, EventArgs e ) : void
button1_Click ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
chart1_MouseClick ( object sender, MouseEventArgs e ) : void
chart1_MouseDown ( object sender, MouseEventArgs e ) : void
chart1_MouseMove ( object sender, MouseEventArgs e ) : void
dataGridView1_CellBeginEdit ( object sender, DataGridViewCellCancelEventArgs e ) : void
dataGridView1_CellClick_1 ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_CellDoubleClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_CellEndEdit_1 ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_CellMouseClick ( object sender, DataGridViewCellMouseEventArgs e ) : void
deleteHandlerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
disconnectLineToolStripMenuItem_Click_1 ( object sender, EventArgs e ) : void
enableToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fillDataGridView ( ) : void
insertNodeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
insertNodeToolStripMenuItem_Click_1 ( object sender, EventArgs e ) : void
loadSettingToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveSettingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
settingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
showComfortZoneToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

AddOrUpdateNewRecord() public method

public AddOrUpdateNewRecord ( string name, DataGridViewCellEventArgs e ) : void
name string
e DataGridViewCellEventArgs
return void

AsyncMethod1ForPullingData() public method

public AsyncMethod1ForPullingData ( ) : Task
return Task

CalculateYFromXandHumidity() public method

public CalculateYFromXandHumidity ( double xVal, double humidity ) : double
xVal double
humidity double
return double

CheckDeviceOnlineOffline() public method

public CheckDeviceOnlineOffline ( int deviceID, int Parent_SerialNum ) : bool
deviceID int
Parent_SerialNum int
return bool

CheckSelectedBuilding() public method

public CheckSelectedBuilding ( ) : void
return void

ClearComfortZone() public method

public ClearComfortZone ( double Tmin, double Tmax, double Hmin, double Hmax ) : void
Tmin double
Tmax double
Hmin double
Hmax double
return void

CountNumberOfItem() public method

public CountNumberOfItem ( string chartId ) : int
chartId string
return int

CountingDB_Item() public method

public CountingDB_Item ( string db_name ) : int
db_name string
return int

CreateRequireTableIfNotPresent() public method

public CreateRequireTableIfNotPresent ( string buildingName ) : void
buildingName string
return void

DataGridView_Show_Data() public method

public DataGridView_Show_Data ( ) : void
return void

DeleteChart() public method

public DeleteChart ( string chartID ) : void
chartID string
return void

DeleteComfortZoneData() public method

public DeleteComfortZoneData ( string id ) : void
id string
return void

DeleteComfortZoneSettingForChart() public method

public DeleteComfortZoneSettingForChart ( string chartID ) : void
chartID string
return void

DeleteLine() public method

public DeleteLine ( string lineID ) : void
lineID string
return void

DeleteNode() public method

public DeleteNode ( string nodeID ) : void
nodeID string
return void

DeleteNodeDeviceInfo() public method

public DeleteNodeDeviceInfo ( string nodeID ) : void
nodeID string
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FindPathOfBuildingDB() public method

public FindPathOfBuildingDB ( ) : void
return void

GetDataFromWeb() public method

This return the different values such as temperatue ,humidity and other parameters.
public GetDataFromWeb ( double latValue, double longValue ) : void
latValue double Latitude
longValue double Longitude
return void

GetGUID() public method

public GetGUID ( ) : string
return string

HumTempCalcByCoordinate() public method

public HumTempCalcByCoordinate ( ) : void
return void

InfoForComfortZoneOfChart() public method

public InfoForComfortZoneOfChart ( string chartID ) : void
chartID string
return void

InitTimerForDevice() public method

public InitTimerForDevice ( ) : void
return void

InsertChartComfortzoneInfo() public method

public InsertChartComfortzoneInfo ( string chartid, string comfortzone_id ) : void
chartid string
comfortzone_id string
return void

InsertComfortZoneValue() public method

This function helps to insert the comfort zone setting in the database.
public InsertComfortZoneValue ( string name, double min_temp, double max_temp, double min_hum, double max_hum, Color color ) : void
name string name of the comfort zone
min_temp double min temperature
max_temp double max temperature
min_hum double min humidity
max_hum double max humidity
color Color color value
return void

InsertLineInfoToDB() public method

public InsertLineInfoToDB ( string id, string prevNodeId, string nextNodeId, Color lineColor, Series lineSeriesVal, int linethickness ) : void
id string
prevNodeId string
nextNodeId string
lineColor Color
lineSeriesVal Series
linethickness int
return void

InsertNodeInfoToDB() public method

public InsertNodeInfoToDB ( string id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText, int nodeSizeValue, string deviceinstance, string deviceip, string param1id, string param2id, string param1info, string param2info, string param1type, string param2type ) : void
id string
xVal double
yVal double
source string
name string
label string
colorValue Color
showItemText string
nodeSizeValue int
deviceinstance string
deviceip string
param1id string
param2id string
param1info string
param2info string
param1type string
param2type string
return void

LoadComfortZone() public method

load the comfort zone when chart is selected
public LoadComfortZone ( string chartid ) : void
chartid string
return void

LoadComfortZoneIfOn() public method

public LoadComfortZoneIfOn ( string chartid ) : void
chartid string
return void

LoadNodeAndLineFromDB() public method

We need have three parameters
public LoadNodeAndLineFromDB ( int indexValue ) : void
indexValue int
return void

LoadNode_LineAndDeviceInfoFromDB() public method

This function is for getting node info , correspoing device info for particular node,and line info this is required for saving in xml formate.
public LoadNode_LineAndDeviceInfoFromDB ( int indexValue ) : void
indexValue int index of the chart selected
return void

PlotComfortZone() public method

public PlotComfortZone ( double Tmin, double Tmax, double Hmin, double Hmax, Color c, string name ) : void
Tmin double
Tmax double
Hmin double
Hmax double
c Color
name string
return void

PullChartList() public method

public PullChartList ( string buildingName ) : void
buildingName string
return void

PullComfortZoneData() public method

public PullComfortZoneData ( ) : void
return void

PullDataFromDB() public method

public PullDataFromDB ( ) : void
return void

PullDataFromHardware() public method

public PullDataFromHardware ( string device_instance_id, string param1id, string param2id, string param1info, string param2info ) : void
device_instance_id string
param1id string
param2id string
param1info string
param2info string
return void

PullLongitudeAndLatitude() public method

public PullLongitudeAndLatitude ( string dbName ) : void
dbName string
return void

ReDrawLines() public method

public ReDrawLines ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color c, int thickness_value ) : void
id string
prevNodeID string
nextNodeID string
lineSeriesID Series
c Color
thickness_value int
return void

ReDrawPoints() public method

public ReDrawPoints ( Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText, int marker_size_value ) : void
s1 Series
x double
y double
c Color
source1 string
name1 string
label1x string
labelValueText string
marker_size_value int
return void

ReDrawPointsForHardware() public method

This function helps to draw the points before loading
public ReDrawPointsForHardware ( Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText, int marker_size_value ) : void
s1 Series
x double
y double
c Color
source1 string
name1 string
label1x string
labelValueText string
marker_size_value int
return void

ReDrawingLineAndNode() public method

public ReDrawingLineAndNode ( ) : void
return void

ReDrawingLineAndNodeForScanHardware() public method

public ReDrawingLineAndNodeForScanHardware ( ) : void
return void

ReadDataFromDevice() public method

helps to pull the data from the hardware of the device
public ReadDataFromDevice ( int deviceID, uint temp_panID, uint hum_panID, string param1_identifier_type, string param2_identifier_type ) : void
deviceID int
temp_panID uint
hum_panID uint
param1_identifier_type string
param2_identifier_type string
return void

ReadDeviceInfoForNode() public method

This get the device info values form the database
public ReadDeviceInfoForNode ( string nodeID1 ) : void
nodeID1 string the node id selected to search for
return void

ReadNodeAndLineDetails() public method

Getting the values of the database on the chartID
public ReadNodeAndLineDetails ( string chart_respective_node_id, string chart_respective_line_id, string buildingName ) : void
chart_respective_node_id string
chart_respective_line_id string
buildingName string
return void

ReadNodeInfoToDelete() public method

help in reading all the node info for a particular chart
public ReadNodeInfoToDelete ( string chartNodeID ) : void
chartNodeID string
return void

RefreshDataFromDeviceAndWeb() public method

public RefreshDataFromDeviceAndWeb ( ) : void
return void

RefreshGraph() public method

public RefreshGraph ( ) : void
return void

ResettingLines() public method

public ResettingLines ( ) : void
return void

SaveConfiguration() public method

public SaveConfiguration ( ) : void
return void

SetNodeForDeviceUsingTempAndHum() public method

public SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
deviceInstance string
IP string
param1ID string
param2ID string
param1_info string
param2_info string
param1_value string
param2_value string
object_identifier_type_param1 string
object_identifier_type_param2 string
return void

SetNodeForWeb() public method

public SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
return void

SetNodeWithValuesXYCoord() public method

public SetNodeWithValuesXYCoord ( string source, string name, string label, Color c1, string comboboxItemText1, double xvalue, double yvalue ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
xvalue double
yvalue double
return void

ShowOrHideForComfortZone() public method

public ShowOrHideForComfortZone ( ) : void
return void

UpdateComfortZoneValue() public method

public UpdateComfortZoneValue ( string id, string name, double min_temp, double max_temp, double min_hum, double max_hum, Color color ) : void
id string
name string
min_temp double
max_temp double
min_hum double
max_hum double
color Color
return void

UpdateLineInfoToDB() public method

This value is edited just now bbk305
public UpdateLineInfoToDB ( string id, string prevNodeId, string nextNodeId, Color lineColor, Series lineSeriesVal, int lineThicknessValue ) : void
id string
prevNodeId string
nextNodeId string
lineColor Color
lineSeriesVal Series
lineThicknessValue int
return void

UpdateLineInfoToDBWithouSeriesID() public method

public UpdateLineInfoToDBWithouSeriesID ( string id, string prevNodeId, string nextNodeId, Color lineColor, int lineThicknessValue ) : void
id string
prevNodeId string
nextNodeId string
lineColor Color
lineThicknessValue int
return void

UpdateNewDataFromDGV() public method

public UpdateNewDataFromDGV ( string name, string chartID ) : void
name string
chartID string
return void

UpdateNodeInfoToDB() public method

public UpdateNodeInfoToDB ( string id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText, int nodeSizeValue ) : void
id string
xVal double
yVal double
source string
name string
label string
colorValue Color
showItemText string
nodeSizeValue int
return void

addCursorFunctionForLineDisconnectConnect() public method

public addCursorFunctionForLineDisconnectConnect ( MouseEventArgs e ) : void
e MouseEventArgs
return void

addTemporarySeries() public method

public addTemporarySeries ( ) : void
return void

add_t_pg() public method

public add_t_pg ( ) : void
return void

buildingChartSetting() public method

public buildingChartSetting ( Form1_main f ) : System
f Form1_main
return System

deleteDatabaseTable() public method

public deleteDatabaseTable ( string tableName ) : void
tableName string
return void

enthalpyHumidityCalculatorForXYvalue() public method

public enthalpyHumidityCalculatorForXYvalue ( double xVal, double yVal ) : void
xVal double
yVal double
return void

insertNewDataFromDGV() public method

public insertNewDataFromDGV ( string name ) : void
name string
return void

insertOrUpdateComfortChartSetting() public method

public insertOrUpdateComfortChartSetting ( string chartID, string comfortzone_ID ) : void
chartID string
comfortzone_ID string
return void

loadXMLDoc() public method

public loadXMLDoc ( ) : void
return void

plot_by_DBT_Enthalpy() public method

public plot_by_DBT_Enthalpy ( double dbt, double enthalpy ) : int
dbt double
enthalpy double
return int

plot_by_DBT_HR_process_diagram() public method

public plot_by_DBT_HR_process_diagram ( double DBT, double HR ) : int
DBT double
HR double
return int

plot_new_graph() public method

public plot_new_graph ( ) : void
return void

plot_on_graph_values_process_diagram() public method

plot using x coord(=temp) and y coord (=hum ratio)
public plot_on_graph_values_process_diagram ( double xval, double yval ) : void
xval double Temperature(x-axis)
yval double humidity ratio(y-axis)
return void

pullComfortZoneInfoSingle() public method

public pullComfortZoneInfoSingle ( string comfortzoneid ) : void
comfortzoneid string
return void

timer1_Tick_For_Device() public method

public timer1_Tick_For_Device ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

update_comfort_zone_for_chart() public method

updates the chart info for comfort zone
public update_comfort_zone_for_chart ( string chartid, string comfortzone_id, string status ) : void
chartid string id of chart selected
comfortzone_id string comfort zone id for each chart
status string
return void

Property Details

chartDetailList public_oe property

public List chartDetailList
return List

default_comfort_zone_of_chart public_oe property

public List default_comfort_zone_of_chart
return List

deviceInfoForSavingToXML public_oe property

public List deviceInfoForSavingToXML
return List

enthalpyDataGridView public_oe property

public double enthalpyDataGridView
return double

humDataGridValue public_oe property

public double humDataGridValue
return double

indexForWhichChartIsSelected public_oe property

public int indexForWhichChartIsSelected
return int

indexOfChartSelected public_oe property

public int indexOfChartSelected
return int

latValueFromDB public_oe property

public double latValueFromDB
return double

lb_simulation_mode_display public_oe property

public System.Windows.Forms.Label lb_simulation_mode_display
return System.Windows.Forms.Label

lineInfoForSavingToXML public_oe property

public List lineInfoForSavingToXML
return List

lineInfoFromXMLfile public_oe property

public List lineInfoFromXMLfile
return List

listComfortZoneDetail public_oe property

public List listComfortZoneDetail
return List

listchartComfortZoneInfoSingle public_oe property

public List listchartComfortZoneInfoSingle
return List

longValueFromDB public_oe property

public double longValueFromDB
return double

menuStripNodeInfoValues public_oe property

public List menuStripNodeInfoValues
return List

menuStripNodeLineInfoValues public_oe property

public List menuStripNodeLineInfoValues
return List

nodeInfoForSavingToXML public_oe property

public List nodeInfoForSavingToXML
return List

nodeInfoFromXMLfile public_oe property

public List nodeInfoFromXMLfile
return List

y_coord_value public_oe property

public double y_coord_value
return double