com.prosysopc.ua.server.instantiation
Class InstanceDeclarationSet

java.lang.Object
  extended by com.prosysopc.ua.server.instantiation.InstanceDeclarationSet
All Implemented Interfaces:
Iterable<TemporaryInstanceDeclaration>

public final class InstanceDeclarationSet
extends Object
implements Iterable<TemporaryInstanceDeclaration>

Set of TemporaryInstanceDeclarations. Used when calculating the fully- inherited InstanceDeclarationHierarchy.


Method Summary
 boolean containsNode(UaNode node)
           
static InstanceDeclarationSet createFromType(UaType type)
          Creates an InstanceDeclarationSet which has all the InstanceDeclarations that the type has.
 TemporaryInstanceDeclaration get(BrowsePath path)
           
 TemporaryInstanceDeclaration get(UaNode node)
           
 Set<ExternalReferenceDeclaration> getExternalReferences(TemporaryInstanceDeclaration declaration)
           
 BrowsePath getPath(UaNode node)
           
 Iterator<TemporaryInstanceDeclaration> iterator()
           
 InstanceDeclaration makePermanent()
          Makes a permanent version of the InstanceDeclarationSet.
 InstanceDeclarationSet merge(InstanceDeclarationSet declarationsInSuperType)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createFromType

public static InstanceDeclarationSet createFromType(UaType type)
Creates an InstanceDeclarationSet which has all the InstanceDeclarations that the type has.


containsNode

public boolean containsNode(UaNode node)

get

public TemporaryInstanceDeclaration get(BrowsePath path)
Returns:
null if TemporaryInstanceDeclaration with the specified path can not be found.

get

public TemporaryInstanceDeclaration get(UaNode node)
Returns:
null if TemporaryInstanceDeclaration with the specified node can not be found.

getExternalReferences

public Set<ExternalReferenceDeclaration> getExternalReferences(TemporaryInstanceDeclaration declaration)

getPath

public BrowsePath getPath(UaNode node)
Returns:
null if TemporaryInstanceDeclaration with the specified node can not be found.

iterator

public Iterator<TemporaryInstanceDeclaration> iterator()
Specified by:
iterator in interface Iterable<TemporaryInstanceDeclaration>

makePermanent

public InstanceDeclaration makePermanent()
Makes a permanent version of the InstanceDeclarationSet. The TemporaryInstanceDeclarations are replaced with InstanceDeclarations. In this process, the InternalReferenceDeclarations are replaced with InstanceReferenceDeclarations.


merge

public InstanceDeclarationSet merge(InstanceDeclarationSet declarationsInSuperType)

size

public int size()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.