|
||||||||||
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.components.GUITimerComponent
public class GUITimerComponent
A widget that displays and counts-down the time. The initial time
interval can be set using setTime(String)
method.
This widget's input pins start (
,
ipStart()
method)stop (
, and
ipStop()
method)pause (
control its behavior in the run-time.
ipPause()
method)
After time elapses, this widget fires event on its timeout
(
output pin.
opTimeout()
method)
Nested Class Summary | |
---|---|
static class |
GUITimerComponent.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUITimerComponent.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Text> |
pause
Deprecated. Not for public use. |
IAttributeValue<Integer> |
reportOnEvery
Deprecated. Not for public use. |
IAttributeValue<Text> |
start
Deprecated. Not for public use. |
IAttributeValue<Boolean> |
startOnInit
Deprecated. Not for public use. |
IAttributeValue<Text> |
stop
Deprecated. Not for public use. |
IAttributeValue<Time> |
time
Deprecated. Not for public use. |
IAttributeValue<Text> |
timeout
Deprecated. Not for public use. |
IAttributeValue<Text> |
timeToGo
Deprecated. Not for public use. |
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 | |
---|---|
GUITimerComponent()
|
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUITimerComponent |
create(GUIContainerComponent parent,
Time time)
Returns new GUITimerComponent with the given initial time and
assigns it to the given parent. |
static GUITimerComponent |
create(GUIContainerComponent parent,
Time time,
Integer reportOnEvery,
LayoutData layoutData)
Deprecated. Not for public use. |
static GUITimerComponent |
create(GUIContainerComponent parent,
Time time,
LayoutData layoutData)
Returns new GUITimerComponent with the given initial time,
places it in the parent's layout according to the given LayoutData ,
and assigns it to the given parent. |
int |
getReportOnEvery()
Returns the number of seconds that determines the report period of this widget. |
boolean |
getStartOnInit()
Returns whether this widget will start counting down immediately after it gets initialized or not. |
int |
getTime()
Returns the initial count-down time interval. |
ISlot<?> |
ipPause()
Returns the pause input pin; when event occurs,
the count-down pauses. |
ISlot<?> |
ipStart()
Returns the start input pin; when event occurs,
the count-down starts. |
ISlot<?> |
ipStop()
Returns the stop input pin; when event occurs,
the count-down stops. |
ISlot<?> |
ipTime()
Returns the time input pin; when event occurs,
the content from the binding message is used to set new count-down
time of this widget. |
ISlot<?> |
opTimeout()
Returns the timeout output pin; when the
count-down finishes, this widget signals other interested
widgets by providing an empty binding message on this pin. |
ISlot<?> |
opTimeToGo()
Returns the timeToGo output pin; during the
count-down period, on each number of seconds (defined by
setReportOnEvery(int) method), this widget provides
a binding message with the remaining time on this pin. |
void |
setReportOnEvery(int reportOnEvery)
Sets the number of seconds that determines the report period of this widget. |
void |
setStartOnInit(boolean startOnInit)
Sets whether this widget will start counting down immediately after it gets initialized or not. |
void |
setTime(java.lang.String time)
Sets the initial count-down time interval. |
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 final IAttributeValue<Boolean> startOnInit
@Deprecated public final IAttributeValue<Integer> reportOnEvery
@Deprecated public final IAttributeValue<Time> time
@Deprecated public final IAttributeValue<Text> start
@Deprecated public final IAttributeValue<Text> stop
@Deprecated public final IAttributeValue<Text> pause
@Deprecated public final IAttributeValue<Text> timeout
@Deprecated public final IAttributeValue<Text> timeToGo
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
Constructor Detail |
---|
public GUITimerComponent()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIComponent
public static GUITimerComponent create(GUIContainerComponent parent, Time time)
GUITimerComponent
with the given initial time and
assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgettime
- the initial time interval to count down
GUITimerComponent
public static GUITimerComponent create(GUIContainerComponent parent, Time time, LayoutData layoutData)
GUITimerComponent
with the given initial time,
places it in the parent's layout according to the given LayoutData
,
and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgettime
- the initial time interval to count downlayoutData
- the layout data of the new timer
GUITimerComponent
public ISlot<?> ipTime()
time
input pin; when event occurs,
the content from the binding message is used to set new count-down
time of this widget.
time
input pinGUIComponentBinding
public ISlot<?> ipStart()
start
input pin; when event occurs,
the count-down starts.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
start
input pinGUIComponentBinding
public ISlot<?> ipStop()
stop
input pin; when event occurs,
the count-down stops.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
stop
input pinGUIComponentBinding
public ISlot<?> ipPause()
pause
input pin; when event occurs,
the count-down pauses.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
pause
input pinGUIComponentBinding
public ISlot<?> opTimeout()
timeout
output pin; when the
count-down finishes, this widget signals other interested
widgets by providing an empty binding message on this pin.
timeout
output pinGUIComponentBinding
public ISlot<?> opTimeToGo()
timeToGo
output pin; during the
count-down period, on each number of seconds (defined by
setReportOnEvery(int)
method), this widget provides
a binding message with the remaining time on this pin.
timeToGo
output pinGUIComponentBinding
public int getTime()
setTime(String)
public void setTime(java.lang.String time)
time
- the initial count-down time intervalpublic boolean getStartOnInit()
setStartOnInit(boolean)
public void setStartOnInit(boolean startOnInit)
startOnInit
- a boolean that tells whether this widget will start
counting down immediately after it gets initialized or notpublic int getReportOnEvery()
setReportOnEvery(int)
public void setReportOnEvery(int reportOnEvery)
reportOnEvery
- @Deprecated public static GUITimerComponent create(GUIContainerComponent parent, Time time, Integer reportOnEvery, LayoutData layoutData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |