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 Summary
Constructors -
Method Summary
Modifier 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
-
DefaultInteractionController
public DefaultInteractionController()
-
-
Method Details
-
getPropertyAdapters
Retrieves a copy of the underlying map, but in deterministic order for serialization -
getGeneralAdapters
Retrieves a copy of the underlying map, but in deterministic order for serialization -
setPropertyAdapters
-
setGeneralAdapters
-
getPropertyAdapter
Description 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 interfaceInteractionController
-
getInteractionDescriptorsWithSource
Description copied from interface:InteractionControllerGet all of the interactions that have the given component as a source (dependency)- Specified by:
getInteractionDescriptorsWithSourcein interfaceInteractionController
-
getInteractionDescriptorsWithTarget
Description copied from interface:InteractionControllerGet all of the interactions that target the given component.- Specified by:
getInteractionDescriptorsWithTargetin interfaceInteractionController
-
getAllAdaptersForTarget
Description copied from interface:InteractionControllerGet all adapters (property + general) for the target component.- Specified by:
getAllAdaptersForTargetin interfaceInteractionController
-
removeAllAdaptersForTarget
- Specified by:
removeAllAdaptersForTargetin interfaceInteractionController
-
setPropertyAdapter
- Specified by:
setPropertyAdapterin interfaceInteractionController
-
removePropertyAdapter
- Specified by:
removePropertyAdapterin interfaceInteractionController
-
addAdapter
- Specified by:
addAdapterin interfaceInteractionController
-
removeAdapter
- Specified by:
removeAdapterin interfaceInteractionController
-
connectAdapters
-
startupEventHandlers
public void startupEventHandlers() -
startupBindings
public void startupBindings() -
startupAdapters
public void startupAdapters() -
shutdownEventHandlers
public void shutdownEventHandlers() -
shutdownBindings
public void shutdownBindings() -
shutdownAdapters
public void shutdownAdapters() -
getContext
-