public class GemCEID extends GemID implements GemCEIDExportInterface
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static boolean |
edgeTrigger
If true, the CEIDs will trigger only on the rising edge (0->1) or more techically false(0) to true (non-zero).
|
static java.lang.String |
ENABLED_PORT_NAME
This is the name that we publish use to publish the enabled flag.
|
static java.lang.String |
FAILED_TRIGGER_CONDITIONS
Will be true if the event was not triggered because it failed a trigger condition - typically edge triggering.
|
static java.lang.String |
SOURCEVID |
static java.lang.String |
TRIGGER_PORT_NAME
This is the name that we publish use to publish the trigger.
|
cvsRev
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, 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 |
---|
GemCEID()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAllReports()
Clears all reports associated with this CEID.
|
void |
clearReport(GemRPTID reportID)
Clears a particular report associated with this CEID.
|
java.util.Vector<GemRPTID> |
getAllReports()
Returns a vector of all the reports that are linked to this CEID.
|
java.util.List<SecsFormat> |
getDVIDs()
Returns the collection of dvids associated with this CEID.
|
boolean |
getEnabled()
Returns true if the CEID is enabled.
|
SecsFormat |
getLastMessageSent()
Returns the last event message that was sent with this CEID.
|
int |
getStaticLocationFor(java.lang.String method)
Add the "Trigger" input.
|
boolean |
isLinked()
Returns true if any reports are linked to this CEID.
|
void |
linkReport(GemRPTID reportID)
Links the report to this CEID if it is not already linked.
|
void |
setDVIDs(java.util.List<SecsFormat> dvids)
Sets the collection of dvids associated with this CEID.
|
void |
setEnabled(boolean newValue)
Enables or disables the CEID.
|
void |
setEnabled(boolean newValue,
boolean post)
Enables or disables the CEID.
|
void |
setLastMessageSent(SecsFormat newValue)
Sets the last event message that was sent with this CEID.
|
void |
setReportWriter(ReportWriter newValue)
Sets the component that will act as a report writer for this component.
|
void |
setValueObject(ValueObjectInterface newValue)
Received as a result of a value changed.
|
SecsFormat |
setValueObject(ValueObjectInterface newValue,
boolean saveData)
Received as a result of a value changed.
|
SecsFormat |
setValueObjectSaveData(ValueObjectInterface newValue)
Received as a result of a value changed.
|
void |
trigger(ValueObjectInterface newValue)
This will send the event report if the report is enabled and the trigger data quality is good.
|
void |
valueChanged(int loc,
ValueChangedEvent e)
Add the "Trigger" input.
|
void |
valueInput(ValueChangedEvent newEvent)
Reset the trigger if the flag is set.
|
addConnectionToDevice, getID, getName, removeConnectionToDevice, setID, setName, setProperty
getDefaultQualityForLocation
getInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, start, stop, tick, VIBEvent
addVIBEventListener, 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, whoAmI
public static boolean edgeTrigger
public static final java.lang.String ENABLED_PORT_NAME
public static final java.lang.String FAILED_TRIGGER_CONDITIONS
public static final java.lang.String SOURCEVID
public static final java.lang.String TRIGGER_PORT_NAME
public void clearAllReports()
public void clearReport(GemRPTID reportID)
public java.util.Vector<GemRPTID> getAllReports()
public java.util.List<SecsFormat> getDVIDs()
public boolean getEnabled()
public SecsFormat getLastMessageSent()
public int getStaticLocationFor(java.lang.String method) throws BadParameterException
getStaticLocationFor
in class Manipulator
BadParameterException
Manipulator.getStaticLocationFor(java.lang.String)
public boolean isLinked()
public void linkReport(GemRPTID reportID)
public void setDVIDs(java.util.List<SecsFormat> dvids)
public void setEnabled(boolean newValue)
newValue
- enables the report if true, disables the report if false.public void setEnabled(boolean newValue, boolean post)
newValue
- enables the report if true, disables the report if false.post
- will post SECSEvents if truepublic void setLastMessageSent(SecsFormat newValue)
public void setReportWriter(ReportWriter newValue)
public void setValueObject(ValueObjectInterface newValue) throws VIBUpdateFailedException
setValueObject
in class SimpleDataSource
newValue
- the new ValueObject value for the serverVIBUpdateFailedException
ValueObject
public SecsFormat setValueObject(ValueObjectInterface newValue, boolean saveData) throws VIBUpdateFailedException
VIBUpdateFailedException
public SecsFormat setValueObjectSaveData(ValueObjectInterface newValue) throws VIBUpdateFailedException
VIBUpdateFailedException
public void trigger(ValueObjectInterface newValue) throws SecsException
trigger
in interface GemCEIDExportInterface
SecsException
- thrown if the event is not sent
because there is no connection.
Note that this will NOT be thrown if spooling is enabled
even if there is no connection to the host.public void valueChanged(int loc, ValueChangedEvent e) throws VIBUpdateFailedException, BadParameterException
valueChanged
in class Manipulator
VIBUpdateFailedException
BadParameterException
Manipulator.valueChanged(int, com.ergotech.vib.valueobjects.ValueChangedEvent)
public void valueInput(ValueChangedEvent newEvent) throws VIBUpdateFailedException
valueInput
in class GemID
newEvent
- the source of the event must be the Manipulator for which the value will be reset.VIBUpdateFailedException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.