Documentation
¶
Index ¶
- func ConvertLdModelToString(ldModel LdModel) (string, error)
- func ConvertSensorTemplateModelsToString(sensorTemplateModels []SensorTemplateModel) (string, error)
- func GenerateIcdFile(filename, iedDesc, iedName, iedType, ip, manufacturer, ldModelInst, ... string)
- func GenerateLdModel(ldInfo LdInfo) (LdModel, []SensorTemplateModel)
- type DAI
- type DOI
- type DataSetModel
- type FCDAModel
- type IEDInfo
- type LLN0Info
- type LLN0LnModel
- func (m *LLN0LnModel) SetLLN0LnModelMandatoryDo(lln0Info LLN0Info)
- func (m *LLN0LnModel) SetLLN0LnModelMeasureDataSet(ldInst, prefix, sensorClass string, sensorInst int, mvDos []DOI)
- func (m *LLN0LnModel) SetLLN0LnModelReportAndLog(ldInst string, isSCD bool)
- func (m *LLN0LnModel) SetLLN0LnModelSettingGroupDataSet(ldInst, prefix, sensorClass string, sensorInst int, sgDos []DOI)
- func (m *LLN0LnModel) SetLLN0LnModelStatusDataSet(ldInst, prefix, sensorClass string, sensorInst int, stDos []DOI)
- type LPHDInfo
- type LPHDLnModel
- type LdInfo
- type LdModel
- type LogControlModel
- type MeasureDoInfo
- type NamPlt
- type OptFieldsModel
- type Property
- type RangeC
- type ReportCtrlModel
- type RptEnabledModel
- type SDI
- type SensorDoModel
- type SensorLnInfo
- type SensorLnMandatoryInfo
- type SensorLnModel
- type SensorTemplateModel
- type SettingGroupDOInfo
- type SettingGroupModel
- type StatusDoInfo
- type TrgOpsModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLdModelToString ¶
func ConvertSensorTemplateModelsToString ¶
func ConvertSensorTemplateModelsToString(sensorTemplateModels []SensorTemplateModel) (string, error)
func GenerateIcdFile ¶
func GenerateIcdFile(filename, iedDesc, iedName, iedType, ip, manufacturer, ldModelInst, sensorTemplates string)
func GenerateLdModel ¶
func GenerateLdModel(ldInfo LdInfo) (LdModel, []SensorTemplateModel)
Types ¶
type DOI ¶
type DOI struct {
XMLName xml.Name `xml:"DOI"`
Desc string `xml:"desc,attr"`
Name string `xml:"name,attr"`
Sdis []SDI
Dais []DAI
}
func GenerateDOForMeasure ¶
func GenerateDOForStatus ¶
type DataSetModel ¶
type LLN0LnModel ¶
type LLN0LnModel struct {
XMLName xml.Name `xml:"LN0"`
Desc string `xml:"desc,attr"`
Prefix string `xml:"prefix,attr,omitempty"`
Inst string `xml:"inst,attr"`
LnClass string `xml:"lnClass,attr"`
LnType string `xml:"lnType,attr"`
MeasureDataSets []*DataSetModel
StatusDataSets []*DataSetModel
SettingGroupDataSets []*DataSetModel
ReportCtrls []ReportCtrlModel
LogCtrls []LogControlModel
SettingGroup SettingGroupModel
MandatoryDOIs []DOI
}
func (*LLN0LnModel) SetLLN0LnModelMandatoryDo ¶
func (m *LLN0LnModel) SetLLN0LnModelMandatoryDo(lln0Info LLN0Info)
func (*LLN0LnModel) SetLLN0LnModelMeasureDataSet ¶
func (m *LLN0LnModel) SetLLN0LnModelMeasureDataSet(ldInst, prefix, sensorClass string, sensorInst int, mvDos []DOI)
func (*LLN0LnModel) SetLLN0LnModelReportAndLog ¶
func (m *LLN0LnModel) SetLLN0LnModelReportAndLog(ldInst string, isSCD bool)
func (*LLN0LnModel) SetLLN0LnModelSettingGroupDataSet ¶
func (m *LLN0LnModel) SetLLN0LnModelSettingGroupDataSet(ldInst, prefix, sensorClass string, sensorInst int, sgDos []DOI)
func (*LLN0LnModel) SetLLN0LnModelStatusDataSet ¶
func (m *LLN0LnModel) SetLLN0LnModelStatusDataSet(ldInst, prefix, sensorClass string, sensorInst int, stDos []DOI)
type LPHDLnModel ¶
type LPHDLnModel struct {
XMLName xml.Name `xml:"LN"`
Desc string `xml:"desc,attr"`
Prefix string `xml:"prefix,attr,omitempty"`
Inst string `xml:"inst,attr"`
LnClass string `xml:"lnClass,attr"`
LnType string `xml:"lnType,attr"`
MandatoryDOIs []DOI
}
func (*LPHDLnModel) SetLPHDLnModel ¶
func (m *LPHDLnModel) SetLPHDLnModel(lphdInfo LPHDInfo, phyHealthVal, phyHealthQuality string)
type LdModel ¶
type LdModel struct {
XMLName xml.Name `xml:"LDevice"`
Desc string `xml:"desc,attr"`
Inst string `xml:"inst,attr"`
LLN0 LLN0LnModel
LPHD LPHDLnModel
Sensors []SensorLnModel
}
type LogControlModel ¶
type MeasureDoInfo ¶
type NamPlt ¶
type NamPlt struct {
Vendor string //生产厂家
SwRev string //软件版本
ConfigRev string //only for LLN0 LPHDLnModel, sensor LN should ignore this
Model string //only for LPHDLnModel
DU string
}
func GenerateLLN0NamPlt ¶
func GenerateLPHDNamPlt ¶
func GenerateSensorNamPlt ¶
type OptFieldsModel ¶
type ReportCtrlModel ¶
type ReportCtrlModel struct {
XMLName xml.Name `xml:"ReportControl"`
Desc string `xml:"desc,attr"`
ConfRev string `xml:"confRev,attr"`
RptID string `xml:"rptID,attr"`
RptName string `xml:"name,attr"`
DataSet string `xml:"datSet,attr"`
IntgPd string `xml:"intgPd,attr"` //周期
BufTime string `xml:"bufTime,attr"`
Buffered string `xml:"buffered,attr"` //是否缓冲报告块
TrgOps TrgOpsModel
OptFields OptFieldsModel
RptEnabled RptEnabledModel
}
type RptEnabledModel ¶
type SensorDoModel ¶
type SensorLnInfo ¶
type SensorLnMandatoryInfo ¶
type SensorLnModel ¶
type SensorLnModel struct {
XMLName xml.Name `xml:"LN"`
Desc string `xml:"desc,attr"`
Prefix string `xml:"prefix,attr,omitempty"`
Inst string `xml:"inst,attr"`
LnClass string `xml:"lnClass,attr"`
LnType string `xml:"lnType,attr"`
MandatoryDOIs []DOI
SensorDOIs []DOI
}
func (*SensorLnModel) SetSensorLnModelMandatoryDo ¶
func (m *SensorLnModel) SetSensorLnModelMandatoryDo(lnInfo SensorLnInfo, mandatoryInfo SensorLnMandatoryInfo)
func (*SensorLnModel) SetSensorLnModelSensorDo ¶
func (m *SensorLnModel) SetSensorLnModelSensorDo(dois []DOI)
type SensorTemplateModel ¶
type SensorTemplateModel struct {
XMLName xml.Name `xml:"LNodeType"`
Desc string `xml:"desc,attr,omitempty"`
LnClass string `xml:"lnClass,attr"`
ID string `xml:"id,attr"`
Dos []*SensorDoModel
}
func (*SensorTemplateModel) SetLnTemplate ¶
func (m *SensorTemplateModel) SetLnTemplate(lnDesc, lnClass, lnType string, properties []Property)
type SettingGroupDOInfo ¶
type SettingGroupModel ¶
type StatusDoInfo ¶
Click to show internal directories.
Click to hide internal directories.