public class Counter extends SimpleManipulator
SimpleDataSource.NameEditorDataDataSource.Writable| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
static long |
serialVersionUID |
UPDATE_DISPLAYED_VALUE, VALUE_INPUTcustomTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebaseautoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo| Constructor and Description |
|---|
Counter()
Generic Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(ValueChangedEvent newEvent)
The value changed method to clear the Counter (resets to minimum or maximum).
|
boolean |
getAutoReset() |
boolean |
getCountUp() |
long |
getIncrementAmount()
This gets the current increment value
|
long |
getMaximum()
This gets maximum limit
|
long |
getMinimum()
This gets the minimum
|
long |
getStartValue()
This gets the value that is set when the Counter starts
|
int |
getStaticLocationFor(java.lang.String method)
This is used by the StaticMethodEvent to determine which valueChanged method to call.
|
void |
setAutoReset(boolean autoReset) |
void |
setCountUp(boolean countUp) |
void |
setIncrementAmount(int incrementAmount) |
void |
setIncrementAmount(long incrementAmount)
This sets the int value to increment by.
|
void |
setMaximum(int maximum) |
void |
setMaximum(long maximum)
This sets the minimum (and clear value if the counter is incrementing).
|
void |
setMinimum(int minimum) |
void |
setMinimum(long minimum)
This sets the minimum (and clear value if the counter is incrementing).
|
void |
setStartValue(int startValue) |
void |
setStartValue(long startValue)
This sets the current value immediately.
|
java.lang.String |
toString()
Provides a description of the current values and states.
|
void |
trigger(ValueChangedEvent newEvent)
Increment the current value if it is counting up, or decrement it if it is
counting down.
|
void |
update(ValueObjectInterface triggerValue)
Update called whenever output is needed.
|
void |
valueChanged(int methodIndex,
ValueChangedEvent e)
This calls the proper valueChanged method based on
the return from the getStaticLocationFor method.
|
getDefaultQualityForLocationgetInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueInputaddConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, start, stop, tick, VIBEventaddVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmIpublic static final java.lang.String cvsRev
public static final long serialVersionUID
public void clear(ValueChangedEvent newEvent) throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic boolean getAutoReset()
public boolean getCountUp()
public long getIncrementAmount()
public long getMaximum()
public long getMinimum()
public long getStartValue()
public int getStaticLocationFor(java.lang.String method)
throws BadParameterException
getStaticLocationFor in class ManipulatorBadParameterExceptionpublic void setAutoReset(boolean autoReset)
public void setCountUp(boolean countUp)
public void setIncrementAmount(int incrementAmount)
public void setIncrementAmount(long incrementAmount)
incrementAmount - public void setMaximum(int maximum)
public void setMaximum(long maximum)
maximum - the minimum value for the Counterpublic void setMinimum(int minimum)
public void setMinimum(long minimum)
minimum - the minimum value for the Counterpublic void setStartValue(int startValue)
throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic void setStartValue(long startValue)
throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic java.lang.String toString()
toString in class Manipulatorpublic void trigger(ValueChangedEvent newEvent) throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic void update(ValueObjectInterface triggerValue) throws VIBUpdateFailedException
VIBUpdateFailedExceptionpublic void valueChanged(int methodIndex,
ValueChangedEvent e)
throws VIBUpdateFailedException,
BadParameterException
valueChanged in class ManipulatorVIBUpdateFailedExceptionBadParameterExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.