rs.sol.soloist.server.guiconfiguration.nonvisualcompoments
Class GUIAndGate

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
              extended by rs.sol.soloist.server.builtindomains.common.ObjectOfClass
                  extended by rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
                      extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent
                          extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUILogicGateComponent
                              extended by rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUIAndGate
All Implemented Interfaces:
IElementPresentationProvider, IUpdatable, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUIAndGate
extends GUILogicGateComponent

An invisible widget that performs logical AND operation on Boolean values currently on this widget's input pins a (ipA() method) and b (ipB() method). The resulting Boolean value is provided on this widget's (inherited) output pin output (opOutput() method). The operation is calculated every time one of the input pins receives new value.

Code example that creates and binds this widget so that it makes sure that the text box is enabled only if both of the two check boxes are checked is given bellow:

 GUIAndGate and = GUIAndGate.create(parent); // must have a parent
 GUIComponentBinding.create(checkBox1.opValue(), and.ipA());
 GUIComponentBinding.create(checkBox2.opValue(), and.ipB());
 
 GUIComponentBinding.create(and.opOutput(), textBox.ipEnabled());
 
 

Author:
SOL Expert Group
See Also:
GUILogicGateComponent, GUINonVisualComponent

Nested Class Summary
static class GUIAndGate.FQPropertyNames
          Deprecated. Not for public use.
static class GUIAndGate.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
 IAttributeValue<Text> a
          Deprecated. Not for public use.
 IAttributeValue<Text> b
          Deprecated. Not for public use.
static IClass CLASSIFIER
          UML class reference
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUILogicGateComponent
output
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyle, context, description, enabled, init, inputBindings, layoutData, logger, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible
 
Constructor Summary
GUIAndGate()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static GUIAndGate create(GUIContainerComponent parent)
          Returns new GUIAndGate and assigns it to its parent widget.
static GUIAndGate create(GUIContainerComponent parent, ISlot a, ISlot b)
          Deprecated. Not for public use.
 ISlot<?> ipA()
          Returns the A input pin; when event occurs, the Boolean value from the binding message accepted on this pin is stored in this widget internally, and also, new Boolean value (the result of AND operation on just accepted value and the last accepted value on the B input pin) is provided on the output output pin (opOutput() method).
 ISlot<?> ipB()
          Returns the B input pin; when event occurs, the Boolean value from the binding message accepted on this pin is stored in this widget internally, and also, new Boolean value (the result of AND operation on just accepted value and the last accepted value on the A input pin) is provided on the output output pin (opOutput() method).
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUILogicGateComponent
opOutput
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent
setCellAlignment, setCellSize, setCellStyle, setCenter, setDirectionAndSize, setLeftRightWidth, setRowColumn, setRowColumn, setSize, setTopBottomHeight, setXY
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyleNames, addValueToSlot, clearSlot, clone, createInfo, createInfoAlreadyValidated, destructor, fillElementInfo, getApplication, getCommands, getCommands, getCommonOwner, getContext, getDescription, getDescrString, getDragIcon, getEnabled, getFeature, getFeature, getInputBindings, getInputPin, getInputPins, getLabelString, getLargeIcon, getLayoutData, getName, getNameString, getOutputPin, getOutputPins, getOwner, getParts, getSetting, getSmallIcon, getStyle, getSubnodes, getTooltip, getTooltipString, getTypeString, getVisible, handle, ipAddStyle, ipEnabled, ipInit, ipRemoveStyle, ipShow, ipShowInParent, ipVisible, isInputPin, isOutputPin, putFeatureInfo, readElement, readElements, readSlot, readSlotAsInfo, readSubnodes, removeValueFromSlot, setContext, setDescription, setEnabled, setLayoutData, setName, setSlot, setSlot, setStyle, setTooltip, setVisible, toTranslateDescriptors, translatePinName, updateInfo, validate, validateParts, validateParts
 
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted
 
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement
getMElement
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement
isKindOf, isModelElement, isRTElement
 

Field Detail

a

@Deprecated
public IAttributeValue<Text> a
Deprecated. Not for public use.

b

@Deprecated
public IAttributeValue<Text> b
Deprecated. Not for public use.

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
Fully qualified UML class name

See Also:
Constant Field Values

CLASSIFIER

public static final IClass CLASSIFIER
UML class reference

Constructor Detail

GUIAndGate

public GUIAndGate()
Method Detail

constructor

public void constructor()
Description copied from interface: IClassifierInstance
The domain-specific constructor of the Classifier.

Specified by:
constructor in interface IClassifierInstance
Overrides:
constructor in class GUILogicGateComponent

create

public static GUIAndGate create(GUIContainerComponent parent)
Returns new GUIAndGate and assigns it to its parent widget.

Parameters:
parent - the parent GUIContainerComponent widget
Returns:
new GUIAndGate

create

@Deprecated
public static GUIAndGate create(GUIContainerComponent parent,
                                           ISlot a,
                                           ISlot b)
Deprecated. Not for public use.


ipA

public ISlot<?> ipA()
Returns the A input pin; when event occurs, the Boolean value from the binding message accepted on this pin is stored in this widget internally, and also, new Boolean value (the result of AND operation on just accepted value and the last accepted value on the B input pin) is provided on the output output pin (opOutput() method).

Returns:
the A input pin
See Also:
GUIComponentBinding

ipB

public ISlot<?> ipB()
Returns the B input pin; when event occurs, the Boolean value from the binding message accepted on this pin is stored in this widget internally, and also, new Boolean value (the result of AND operation on just accepted value and the last accepted value on the A input pin) is provided on the output output pin (opOutput() method).

Returns:
the B input pin
See Also:
GUIComponentBinding