libiec61850.NET 1.6.1
IEC 61850 .NET API for libiec61850 protocol library
|
Report control block (RCB) representation. More...
Public Member Functions | |
void | Dispose () |
Releases all resource used by the IEC61850.Client.ReportControlBlock object. | |
string | GetObjectReference () |
void | InstallReportHandler (ReportHandler reportHandler, object parameter) |
Installs the report handler. | |
void | GetRCBValues () |
Read all RCB values from the server. | |
UInt32 | GetRCBValuesAsync (GetRCBValuesHandler handler, object parameter) |
Read all RCB values from the server - asynchronous version. | |
void | SetRCBValues () |
Write changed RCB values to the server. | |
UInt32 | SetRCBValuesAsync (SetRCBValuesHandler handler, object parameter) |
UInt32 | SetRCBValuesAsync (bool singleRequest, SetRCBValuesHandler handler, object parameter) |
void | SetRCBValues (bool singleRequest) |
Write changed RCB values to the server. | |
bool | IsBuffered () |
Determines whether this instance is a buffered or unbuffered RCB. | |
UInt64 | GetEntryTime () |
Gets the entry time of the RCB as ms time. | |
DateTimeOffset | GetEntryTimeAsDateTimeOffset () |
Gets the entry time of the RCB as DateTimeOffset. | |
byte[] | GetEntryID () |
Gets the entryID of RCB. | |
void | SetEntryID (byte[] entryId) |
string | GetDataSetReference () |
Gets the data set reference of the associated data set. | |
void | SetDataSetReference (string dataSetReference) |
Sets the data set reference. Use this method to select the associated data set for the RCB. | |
string | GetRptId () |
Gets the report identifier. | |
void | SetRptId (string rptId) |
Sets the RptId (report ID) of the RCB. | |
bool | GetRptEna () |
Check if reporting is currently enabled. | |
void | SetRptEna (bool rptEna) |
Sets report enable flag. Use this to enable reporting. | |
bool | GetPurgeBuf () |
Get the purgeBuf flag of the report control block. | |
void | SetPurgeBuf (bool purgeBuf) |
Set the purgeBuf flag of the report control block. | |
UInt32 | GetBufTm () |
Gets the buffer time. | |
void | SetBufTm (UInt32 bufTm) |
Sets the buffer time. | |
bool | GetGI () |
Gets the GI flag. | |
void | SetGI (bool GI) |
Sets the GI flag. Use this to trigger a GI (general interrogation) command. | |
bool | GetResv () |
Check if RCB is reserved by a client. | |
UInt32 | GetConfRev () |
Gets the configuration revision of the RCB. | |
void | SetResv (bool resv) |
Sets RESV flag. Use this to reserve (allocate) this RCB. | |
TriggerOptions | GetTrgOps () |
Gets the trigger options of the RCB. | |
void | SetTrgOps (TriggerOptions trgOps) |
Sets the trigger options of the RCB. | |
UInt32 | GetIntgPd () |
Gets the integrity period. | |
void | SetIntgPd (UInt32 intgPd) |
Sets the integrity period. | |
ReportOptions | GetOptFlds () |
Gets the option fields. | |
void | SetOptFlds (ReportOptions optFlds) |
Sets the option field. Used to enable or disable optional report elements. | |
bool | HasResvTms () |
Check if the report control block has the "ResvTms" attribute. | |
Int16 | GetResvTms () |
Gets the ResvTms (reservation time) value. | |
void | SetResvTms (Int16 resvTms) |
Sets the ResvTms (reservation time) value. | |
byte[] | GetOwner () |
Gets the current owner of the RCB. | |
Report control block (RCB) representation.
This class is used as a client side representation (copy) of a report control block (RCB). Values from the server will only be read when the GetRCBValues method is called. Values at the server are only affected when the SetRCBValues method is called.
void IEC61850.Client.ReportControlBlock.Dispose | ( | ) |
Releases all resource used by the IEC61850.Client.ReportControlBlock object.
Call Dispose when you are finished using the IEC61850.Client.ReportControlBlock. The Dispose method leaves the IEC61850.Client.ReportControlBlock in an unusable state. After calling Dispose, you must release all references to the IEC61850.Client.ReportControlBlock so the garbage collector can reclaim the memory that the IEC61850.Client.ReportControlBlock was occupying.
UInt32 IEC61850.Client.ReportControlBlock.GetBufTm | ( | ) |
Gets the buffer time.
UInt32 IEC61850.Client.ReportControlBlock.GetConfRev | ( | ) |
Gets the configuration revision of the RCB.
string IEC61850.Client.ReportControlBlock.GetDataSetReference | ( | ) |
Gets the data set reference of the associated data set.
byte[] IEC61850.Client.ReportControlBlock.GetEntryID | ( | ) |
Gets the entryID of RCB.
Returns the EntryID of the last received GetRCBValues service response. The EntryID is only present in buffered RCBs (BRCBs).
UInt64 IEC61850.Client.ReportControlBlock.GetEntryTime | ( | ) |
Gets the entry time of the RCB as ms time.
The entry time is the timestamp of the last report sent.
DateTimeOffset IEC61850.Client.ReportControlBlock.GetEntryTimeAsDateTimeOffset | ( | ) |
Gets the entry time of the RCB as DateTimeOffset.
The entry time is the timestamp of the last report sent.
bool IEC61850.Client.ReportControlBlock.GetGI | ( | ) |
Gets the GI flag.
UInt32 IEC61850.Client.ReportControlBlock.GetIntgPd | ( | ) |
Gets the integrity period.
string IEC61850.Client.ReportControlBlock.GetObjectReference | ( | ) |
ReportOptions IEC61850.Client.ReportControlBlock.GetOptFlds | ( | ) |
Gets the option fields.
byte[] IEC61850.Client.ReportControlBlock.GetOwner | ( | ) |
Gets the current owner of the RCB.
bool IEC61850.Client.ReportControlBlock.GetPurgeBuf | ( | ) |
Get the purgeBuf flag of the report control block.
void IEC61850.Client.ReportControlBlock.GetRCBValues | ( | ) |
Read all RCB values from the server.
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ReportControlBlock.GetRCBValuesAsync | ( | GetRCBValuesHandler | handler, |
object | parameter ) |
Read all RCB values from the server - asynchronous version.
handler | user provided callback function |
parameter | user provided callback parameter |
IedConnectionException | This exception is thrown if there is a connection or service error |
bool IEC61850.Client.ReportControlBlock.GetResv | ( | ) |
Check if RCB is reserved by a client.
Int16 IEC61850.Client.ReportControlBlock.GetResvTms | ( | ) |
Gets the ResvTms (reservation time) value.
Only for BRCB. Value of -1 indicate the BRCB is exclusively reserved for a set of client based upon configuration. Value of 0 means that the BRCB is not reserved. Positive value indicates that the BRCB is reserved dynamically and the value is the number of seconds for reservation after association loss.
bool IEC61850.Client.ReportControlBlock.GetRptEna | ( | ) |
Check if reporting is currently enabled.
string IEC61850.Client.ReportControlBlock.GetRptId | ( | ) |
Gets the report identifier.
TriggerOptions IEC61850.Client.ReportControlBlock.GetTrgOps | ( | ) |
Gets the trigger options of the RCB.
bool IEC61850.Client.ReportControlBlock.HasResvTms | ( | ) |
Check if the report control block has the "ResvTms" attribute.
true
, if ResvTms is available, false
otherwise.void IEC61850.Client.ReportControlBlock.InstallReportHandler | ( | ReportHandler | reportHandler, |
object | parameter ) |
Installs the report handler.
This will install a callback handler (delegate) that is invoked whenever a report related to this RCB is received. Any call of this method will replace an previously registered handler!
reportHandler | report handler |
parameter | parameter is passed to the handler when the handler is invoked. |
bool IEC61850.Client.ReportControlBlock.IsBuffered | ( | ) |
Determines whether this instance is a buffered or unbuffered RCB.
true
if this instance is a buffered RCB; otherwise, false
. void IEC61850.Client.ReportControlBlock.SetBufTm | ( | UInt32 | bufTm | ) |
Sets the buffer time.
bufTm | Buffer time is ms. |
void IEC61850.Client.ReportControlBlock.SetDataSetReference | ( | string | dataSetReference | ) |
Sets the data set reference. Use this method to select the associated data set for the RCB.
void IEC61850.Client.ReportControlBlock.SetEntryID | ( | byte[] | entryId | ) |
void IEC61850.Client.ReportControlBlock.SetGI | ( | bool | GI | ) |
Sets the GI flag. Use this to trigger a GI (general interrogation) command.
GI | request general interrogation of true |
void IEC61850.Client.ReportControlBlock.SetIntgPd | ( | UInt32 | intgPd | ) |
Sets the integrity period.
intgPd | integrity period in ms |
void IEC61850.Client.ReportControlBlock.SetOptFlds | ( | ReportOptions | optFlds | ) |
Sets the option field. Used to enable or disable optional report elements.
optFlds | Option field. |
void IEC61850.Client.ReportControlBlock.SetPurgeBuf | ( | bool | purgeBuf | ) |
Set the purgeBuf flag of the report control block.
This is only for buffered RCBs. If set to true the report buffer of a buffered RCB will be cleaned.
purgeBuf | set to true to flush report buffer |
void IEC61850.Client.ReportControlBlock.SetRCBValues | ( | ) |
Write changed RCB values to the server.
This function will only write the RCB values that were set by one of the setter methods. The RCB values are sent by a single MMS write request.
IedConnectionException | This exception is thrown if there is a connection or service error |
void IEC61850.Client.ReportControlBlock.SetRCBValues | ( | bool | singleRequest | ) |
Write changed RCB values to the server.
This function will only write the RCB values that were set by one of the setter methods.
IedConnectionException | This exception is thrown if there is a connection or service error |
singleRequest | If true the values are sent by single MMS write request. Otherwise the values are all sent by their own MMS write requests. |
UInt32 IEC61850.Client.ReportControlBlock.SetRCBValuesAsync | ( | bool | singleRequest, |
SetRCBValuesHandler | handler, | ||
object | parameter ) |
UInt32 IEC61850.Client.ReportControlBlock.SetRCBValuesAsync | ( | SetRCBValuesHandler | handler, |
object | parameter ) |
void IEC61850.Client.ReportControlBlock.SetResv | ( | bool | resv | ) |
Sets RESV flag. Use this to reserve (allocate) this RCB.
resv | true: reserver this RCB for exclusive use |
void IEC61850.Client.ReportControlBlock.SetResvTms | ( | Int16 | resvTms | ) |
Sets the ResvTms (reservation time) value.
resvTms | the reservation time value |
void IEC61850.Client.ReportControlBlock.SetRptEna | ( | bool | rptEna | ) |
Sets report enable flag. Use this to enable reporting.
rptEna | true to enable reporting, false to disable |
void IEC61850.Client.ReportControlBlock.SetRptId | ( | string | rptId | ) |
Sets the RptId (report ID) of the RCB.
rptId | The new RptId |
void IEC61850.Client.ReportControlBlock.SetTrgOps | ( | TriggerOptions | trgOps | ) |
Sets the trigger options of the RCB.
trgOps | trigger options |