org.openmuc.openiec61850
Class ServerModel

java.lang.Object
  extended by org.openmuc.openiec61850.ModelNode
      extended by org.openmuc.openiec61850.ServerModel
All Implemented Interfaces:
java.lang.Iterable<ModelNode>

public final class ServerModel
extends ModelNode


Field Summary
 
Fields inherited from class org.openmuc.openiec61850.ModelNode
children, objectReference
 
Constructor Summary
ServerModel(java.util.List<LogicalDevice> logicalDevices, java.util.Collection<DataSet> dataSets)
           
 
Method Summary
 ServerModel copy()
          Copies the whole node with all of its children.
 ModelNode findModelNode(ObjectReference objectReference, Fc fc)
          Searches and returns the model node with the given object reference and FC.
 ModelNode findModelNode(java.lang.String objectReference, Fc fc)
           
 DataSet getDataSet(java.lang.String dataSetReference)
           
 java.util.Collection<DataSet> getDataSets()
           
 Urcb getUrcb(java.lang.String urcbRef)
           
 java.util.Collection<Urcb> getUrcbs()
           
 java.lang.String toString()
           
 
Methods inherited from class org.openmuc.openiec61850.ModelNode
getBasicDataAttributes, getChild, getChild, getChildren, getIterators, getName, getParent, getReference, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerModel

public ServerModel(java.util.List<LogicalDevice> logicalDevices,
                   java.util.Collection<DataSet> dataSets)
Method Detail

copy

public ServerModel copy()
Description copied from class: ModelNode
Copies the whole node with all of its children. Creates new BasicDataAttribute values but reuses ObjectReferences, FunctionalConstraints.

Specified by:
copy in class ModelNode

getDataSet

public DataSet getDataSet(java.lang.String dataSetReference)

getDataSets

public java.util.Collection<DataSet> getDataSets()

getUrcbs

public java.util.Collection<Urcb> getUrcbs()

getUrcb

public Urcb getUrcb(java.lang.String urcbRef)

toString

public java.lang.String toString()
Overrides:
toString in class ModelNode

findModelNode

public ModelNode findModelNode(ObjectReference objectReference,
                               Fc fc)
Searches and returns the model node with the given object reference and FC. If searching for Logical Devices and Logical Nodes the given fc parameter may be null.

Parameters:
objectReference - the object reference of the node that is being searched for. It has a syntax like "ldname/ln.do....".
fc - the functional constraint of the requested model node. May be null for Logical Device and Logical Node references.
Returns:
the model node if it was found or null otherwise

findModelNode

public ModelNode findModelNode(java.lang.String objectReference,
                               Fc fc)