Tekvel Magic
Loading...
Searching...
No Matches
SVSimulator Class Reference

Sampled Values simulator. More...

Public Member Functions

def __init__ (self, scl, ied_name=None, smpSynch=SmpSynch.NONE, nif_id=None, cb_ref_list=None, simulation=True)
 
def get_svcb_ref_list (self)
 Returns list of SVCB references associated with this SVSimulator. More...
 
def get_fcda_ref_list (self, svcb_ref=None, ref_type=ReferenceType.ObjectReference)
 Returns a list of data attribute references of dataset associated with SV control block specified. More...
 
def get_ied_name (self)
 Returns IED name of the IED associated with SV Simulator instance. More...
 
def get_ap_name (self)
 Returns AccessPoint name of the IED associated with SV Simulator instance. More...
 
def set_smpSynch (self, smpSynch)
 Set SV simulator synchronization. More...
 
def enable_all (self)
 Enables all SV control blocks and starts SV publishing. More...
 
def disable_all (self)
 Disables all SV control blocks and stops SV publishing. More...
 
def destroy (self)
 Stop SV simulation and destroy SV Generator instance. More...
 

Detailed Description

Sampled Values simulator.

This class provides interface to create and control Sampled Values simulator.

Deprecated:
This class is deprecated and left for backwards compatibility only. Use SVPublisher class instead.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  scl,
  ied_name = None,
  smpSynch = SmpSynch.NONE,
  nif_id = None,
  cb_ref_list = None,
  simulation = True 
)

Member Function Documentation

◆ destroy()

def destroy (   self)

Stop SV simulation and destroy SV Generator instance.

Warning
Be sure to use this function in the end each test script to ensure no SV publisher left loaded when script ends.

◆ disable_all()

def disable_all (   self)

Disables all SV control blocks and stops SV publishing.

◆ enable_all()

def enable_all (   self)

Enables all SV control blocks and starts SV publishing.

◆ get_ap_name()

def get_ap_name (   self)

Returns AccessPoint name of the IED associated with SV Simulator instance.

Возвращает имя точки доступа, ассоциированной с симулятором SV.

◆ get_fcda_ref_list()

def get_fcda_ref_list (   self,
  svcb_ref = None,
  ref_type = ReferenceType.ObjectReference 
)

Returns a list of data attribute references of dataset associated with SV control block specified.

If no svcb_ref specified the function returns references to all control blocks associated with this SVSimulator instance.

Parameters
svcb_refReference to an SV control block associated with the instance of SVSimulator.
ref_typeType of reference for returned data. See ReferenceType for available types.
Returns
List of strings where each string is a reference to data attribute specified by FCDA element in the dataset referenced by SV control block.
See also
ReferenceType, SCL Тип ссылок, используемый в возвращаемых данных. Тип ссылки определяется классом ReferenceType.
Returns

◆ get_ied_name()

def get_ied_name (   self)

Returns IED name of the IED associated with SV Simulator instance.

Возвращает имя устройства, ассоциированного с симулятором SV.

◆ get_svcb_ref_list()

def get_svcb_ref_list (   self)

Returns list of SVCB references associated with this SVSimulator.

Returns
List of strings where each string is a reference to SV Control Block in the format of MMSReference

◆ set_smpSynch()

def set_smpSynch (   self,
  smpSynch 
)

Set SV simulator synchronization.

Parameters
smpSynchinteger sychronization flag. Use SmpSynch enum for handy shortcuts.
See also
SmpSynch