org.openiec61850
Class ClientAssociation

java.lang.Object
  extended by org.openiec61850.ClientAssociation

public class ClientAssociation
extends java.lang.Object


Method Summary
 void close()
          will close the connection simply by closing the socket (i.e.
 void createDataSet(DataSet dataSet)
          The client should create the data set first and add it to either the nonpersistent list or to the model.
 void deleteDataSet(DataSet dataSet)
           
 void disconnect()
          will send a disconnect request first and then close the socket (i.e.
 java.util.List<ServiceError> getDataSetValues(DataSet dataSet)
           
 ModelNode getDataValues(FcModelNode modelNode)
           
 void getRCBValues(ReportControlBlock rcb)
           
 Report getReport()
           
 Report getReport(int timeout)
           
 ServerModel retrieveModel()
          The Model contains not SubDataObjects because they cannot be distinguished from Constructed Data Attributes in MMS.
 java.util.List<ServiceError> setDataSetValues(DataSet dataSet)
           
 void setDataValues(FcModelNode modelNode)
           
 void setRCBValues(ReportControlBlock rcb)
           
 void updateDataSets()
          This function will get the definition of all persistent DataSets from the server and update the DataSets in the ServerModel that was returned by the retrieveModel() function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveModel

public ServerModel retrieveModel()
                          throws ServiceError
The Model contains not SubDataObjects because they cannot be distinguished from Constructed Data Attributes in MMS. Also at the moment the model only contains FCDataObjects

Throws:
ServiceError

getDataValues

public ModelNode getDataValues(FcModelNode modelNode)
                        throws ServiceError
Throws:
ServiceError

setDataValues

public void setDataValues(FcModelNode modelNode)
                   throws ServiceError
Throws:
ServiceError

updateDataSets

public void updateDataSets()
                    throws ServiceError
This function will get the definition of all persistent DataSets from the server and update the DataSets in the ServerModel that was returned by the retrieveModel() function. It will delete DataSets that have been deleted since the last update and add any new DataSets

Throws:
ServiceError

createDataSet

public void createDataSet(DataSet dataSet)
                   throws ServiceError
The client should create the data set first and add it to either the nonpersistent list or to the model. Then it should call this method for creation on the server side

Throws:
ServiceError

deleteDataSet

public void deleteDataSet(DataSet dataSet)
                   throws ServiceError
Throws:
ServiceError

getDataSetValues

public java.util.List<ServiceError> getDataSetValues(DataSet dataSet)
                                              throws ServiceError
Throws:
ServiceError

setDataSetValues

public java.util.List<ServiceError> setDataSetValues(DataSet dataSet)
                                              throws ServiceError
Throws:
ServiceError

getRCBValues

public void getRCBValues(ReportControlBlock rcb)
                  throws ServiceError
Throws:
ServiceError

setRCBValues

public void setRCBValues(ReportControlBlock rcb)
                  throws ServiceError
Throws:
ServiceError

getReport

public Report getReport()
                 throws ServiceError
Throws:
ServiceError

getReport

public Report getReport(int timeout)
                 throws ServiceError
Throws:
ServiceError

close

public void close()
will close the connection simply by closing the socket (i.e. the TCP connection)


disconnect

public void disconnect()
will send a disconnect request first and then close the socket (i.e. the TCP connection)