Class DefaultInteractionController
java.lang.Object
com.inductiveautomation.factorypmi.application.binding.DefaultInteractionController
- All Implemented Interfaces:
- InteractionController
Straight-forward implementation of an interaction controller using a map of adapters.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdapter(Component c, Adapter a) voidconnectAdapters(VisionClientContext context) Adapter[]getAllAdaptersForTarget(Component target) Get all adapters (property + general) for the target component.Retrieves a copy of the underlying map, but in deterministic order for serializationGet all of the interactions that have the given component as a source (dependency)Get all of the interactions that target the given component.getPropertyAdapter(Component c, String propName) Get the property adapter for the given property.Retrieves a copy of the underlying map, but in deterministic order for serializationvoidremoveAdapter(Component c, Adapter a) removeAllAdaptersForTarget(Component target) voidremovePropertyAdapter(Component c, String propName) voidsetGeneralAdapters(HashMap<Component, List<Adapter>> generalAdapters) voidsetPropertyAdapter(Component c, String propName, PropertyAdapter pa) voidvoidvoidvoidvoidvoidvoid
- 
Constructor Details- 
DefaultInteractionControllerpublic DefaultInteractionController()
 
- 
- 
Method Details- 
getPropertyAdaptersRetrieves a copy of the underlying map, but in deterministic order for serialization
- 
getGeneralAdaptersRetrieves a copy of the underlying map, but in deterministic order for serialization
- 
setPropertyAdapters
- 
setGeneralAdapters
- 
getPropertyAdapterDescription copied from interface:InteractionControllerGet the property adapter for the given property. If no adapter (a.k.a. binding) is installed, null is returned.- Specified by:
- getPropertyAdapterin interface- InteractionController
 
- 
getInteractionDescriptorsWithSourceDescription copied from interface:InteractionControllerGet all of the interactions that have the given component as a source (dependency)- Specified by:
- getInteractionDescriptorsWithSourcein interface- InteractionController
 
- 
getInteractionDescriptorsWithTargetDescription copied from interface:InteractionControllerGet all of the interactions that target the given component.- Specified by:
- getInteractionDescriptorsWithTargetin interface- InteractionController
 
- 
getAllAdaptersForTargetDescription copied from interface:InteractionControllerGet all adapters (property + general) for the target component.- Specified by:
- getAllAdaptersForTargetin interface- InteractionController
 
- 
removeAllAdaptersForTarget- Specified by:
- removeAllAdaptersForTargetin interface- InteractionController
 
- 
setPropertyAdapter- Specified by:
- setPropertyAdapterin interface- InteractionController
 
- 
removePropertyAdapter- Specified by:
- removePropertyAdapterin interface- InteractionController
 
- 
addAdapter- Specified by:
- addAdapterin interface- InteractionController
 
- 
removeAdapter- Specified by:
- removeAdapterin interface- InteractionController
 
- 
connectAdapters
- 
startupEventHandlerspublic void startupEventHandlers()
- 
startupBindingspublic void startupBindings()
- 
startupAdapterspublic void startupAdapters()
- 
shutdownEventHandlerspublic void shutdownEventHandlers()
- 
shutdownBindingspublic void shutdownBindings()
- 
shutdownAdapterspublic void shutdownAdapters()
- 
getContext
 
-