com.prosysopc.ua.server.instantiation
Class TwoStateVariableInstantiationStrategy

java.lang.Object
  extended by com.prosysopc.ua.server.instantiation.TwoStateVariableInstantiationStrategy
All Implemented Interfaces:
InstantiationStrategy

public class TwoStateVariableInstantiationStrategy
extends Object
implements InstantiationStrategy


Constructor Summary
TwoStateVariableInstantiationStrategy(String trueState, String falseState, boolean defaultValue)
           
 
Method Summary
 UaNode createInstance(InstantiationParameters params)
          Create new instance
 boolean createsCompleteHierarchy()
          If this returns true, then NodeBuilder assumes this strategy creates every sub-node, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoStateVariableInstantiationStrategy

public TwoStateVariableInstantiationStrategy(String trueState,
                                             String falseState,
                                             boolean defaultValue)
Method Detail

createInstance

public UaNode createInstance(InstantiationParameters params)
Description copied from interface: InstantiationStrategy
Create new instance

Specified by:
createInstance in interface InstantiationStrategy
Parameters:
params - The parameters for the instantiation
Returns:
the new Instance

createsCompleteHierarchy

public boolean createsCompleteHierarchy()
Description copied from interface: InstantiationStrategy
If this returns true, then NodeBuilder assumes this strategy creates every sub-node, i.e. NodeBuilder should stop at this hierarchy level.

Specified by:
createsCompleteHierarchy in interface InstantiationStrategy


Copyright © 2018. All rights reserved.