Class ActionAdapter
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter
- All Implemented Interfaces:
- Adapter,- InvocationHandler
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.AdapterAdapter.ValueHolder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconnect(VisionClientContext appContext) Notifies the adapter that it should connect any listeners that it needs.protected ObjectvoidNotifies the adapter that it should disconnect any listeners.protected booleanintRetrieves an array of the interactions that this adapter depends on.The target component is the component that this adapter serves.booleanbooleanisValid()Returns true if this adapter's configuration is valid.voidsetBuilderInfo(Map<String, Object> builderInfo) voidsetBuilderMode(int builderMode) voidsetConnected(boolean b) Deprecated.voidsetEventSet(EventSetDescriptor descriptor) voidsetInvokeLater(boolean invokeLater) voidsetJythonCode(String string) voidsetListenerProxy(Object object) Deprecated.voidsetMethodDescriptor(MethodDescriptor descriptor) voidsetScopeStyle(ScriptScopeStyle scopeStyle) voidvoidshutdown()Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.voidstartup()Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
- 
Field Details- 
MODE_SCRIPTpublic static final int MODE_SCRIPT- See Also:
 
- 
MODE_DBpublic static final int MODE_DB- See Also:
 
- 
MODE_NAVpublic static final int MODE_NAV- See Also:
 
- 
MODE_PROPSETpublic static final int MODE_PROPSET- See Also:
 
- 
MODE_TAGSETpublic static final int MODE_TAGSET- See Also:
 
 
- 
- 
Constructor Details- 
ActionAdapterpublic ActionAdapter()
 
- 
- 
Method Details- 
isValidpublic boolean isValid()Description copied from interface:AdapterReturns true if this adapter's configuration is valid. This somewhat of a hack, to detect if something has gone wrong with the adapter (due do serialization, we think?)
- 
disconnectpublic void disconnect()Description copied from interface:AdapterNotifies the adapter that it should disconnect any listeners.- Specified by:
- disconnectin interface- Adapter
 
- 
connectDescription copied from interface:AdapterNotifies the adapter that it should connect any listeners that it needs. Adapters will remain connected throughout their lifetime, even when they are dormant
- 
getInteractionsDescription copied from interface:AdapterRetrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
- getInteractionsin interface- Adapter
 
- 
getTargetDescription copied from interface:AdapterThe target component is the component that this adapter serves. This means it is the target of a property adapter or the source of events for an action adapter.
- 
setTarget
- 
startuppublic void startup()Description copied from interface:AdapterNotifies the adapter that it is becoming active, and should start any polling/threaded activities.
- 
shutdownpublic void shutdown()Description copied from interface:AdapterNotifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
- 
getEventSet
- 
getMethodDescriptor
- 
setConnectedDeprecated.The connected property is now transient - all new/deserialized ActionAdapters are not connected.
- 
setEventSet
- 
setListenerProxyDeprecated.The listener proxy object is now transient
- 
setMethodDescriptor
- 
getJythonCode
- 
setJythonCode
- 
invoke- Specified by:
- invokein interface- InvocationHandler
- Throws:
- Throwable
 
- 
eventsDisabledprotected boolean eventsDisabled()
- 
createListener
- 
getBuilderInfo
- 
setBuilderInfo
- 
getBuilderModepublic int getBuilderMode()
- 
setBuilderModepublic void setBuilderMode(int builderMode) 
- 
getScopeStyle
- 
setScopeStyle
- 
setInvokeLaterpublic void setInvokeLater(boolean invokeLater) 
- 
isInvokeLaterpublic boolean isInvokeLater()
 
-