org.openiec61850.server.data
Interface DataSource

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
SampleDataSource

public interface DataSource
extends java.lang.Runnable

The IEC server AccessPoint reads and writes data from and to so called DataSources. These data sources are external to the openIEC61850 library stack and are accessed via this interface. For every AccessPoint there must be an implementation of this interface. These implementations are not part of the openIEC61850 stack but of the concrete applications that make use of the stack.


Method Summary
 void initialize(AccessPoint ac, java.util.Set<java.lang.String> triggerDchg, java.util.Set<java.lang.String> triggerQchg, java.util.Set<java.lang.String> triggerDupd)
          Initiates the DataSource with a reference back to the Access point and all triggerable nodes
 void readValues(java.util.List<BasicDataAttribute> basicDataAttributes)
          Inserts the proper values in the given BasicDataAttributes using setValue().
 void writeValues(java.util.List<BasicDataAttribute> basicDataAttributes)
          Takes the values from the given list of BasicDataAttributes.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

readValues

void readValues(java.util.List<BasicDataAttribute> basicDataAttributes)
                throws ServiceError
Inserts the proper values in the given BasicDataAttributes using setValue(). This function is called by the openIEC61850 server library whenever a GetDataValues or GetDataSetValues service request comes in.

Throws:
ServiceError

writeValues

void writeValues(java.util.List<BasicDataAttribute> basicDataAttributes)
                 throws ServiceError
Takes the values from the given list of BasicDataAttributes.

Throws:
ServiceError

initialize

void initialize(AccessPoint ac,
                java.util.Set<java.lang.String> triggerDchg,
                java.util.Set<java.lang.String> triggerQchg,
                java.util.Set<java.lang.String> triggerDupd)
Initiates the DataSource with a reference back to the Access point and all triggerable nodes