|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance rs.sol.soloist.server.builtindomains.common.ObjectOfClass rs.sol.soloist.server.guiconfiguration.construction.GUIComponent rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUINonVisualComponent rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUILogicGateComponent rs.sol.soloist.server.guiconfiguration.nonvisualcompoments.GUIAndGate
public class GUIAndGate
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());
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.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 |
---|
@Deprecated public IAttributeValue<Text> a
@Deprecated public IAttributeValue<Text> b
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
Constructor Detail |
---|
public GUIAndGate()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUILogicGateComponent
public static GUIAndGate create(GUIContainerComponent parent)
GUIAndGate
and assigns it to its parent widget.
parent
- the parent GUIContainerComponent
widget
GUIAndGate
@Deprecated public static GUIAndGate create(GUIContainerComponent parent, ISlot a, ISlot b)
public ISlot<?> ipA()
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).
A
input pinGUIComponentBinding
public ISlot<?> ipB()
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).
B
input pinGUIComponentBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |