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 TypeMethodDescriptionvoid
addAdapter
(Component c, Adapter a) void
connectAdapters
(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 serializationvoid
removeAdapter
(Component c, Adapter a) removeAllAdaptersForTarget
(Component target) void
removePropertyAdapter
(Component c, String propName) void
setGeneralAdapters
(HashMap<Component, List<Adapter>> generalAdapters) void
setPropertyAdapter
(Component c, String propName, PropertyAdapter pa) void
void
void
void
void
void
void
-
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:InteractionController
Get the property adapter for the given property. If no adapter (a.k.a. binding) is installed, null is returned.- Specified by:
getPropertyAdapter
in interfaceInteractionController
-
getInteractionDescriptorsWithSource
Description copied from interface:InteractionController
Get all of the interactions that have the given component as a source (dependency)- Specified by:
getInteractionDescriptorsWithSource
in interfaceInteractionController
-
getInteractionDescriptorsWithTarget
Description copied from interface:InteractionController
Get all of the interactions that target the given component.- Specified by:
getInteractionDescriptorsWithTarget
in interfaceInteractionController
-
getAllAdaptersForTarget
Description copied from interface:InteractionController
Get all adapters (property + general) for the target component.- Specified by:
getAllAdaptersForTarget
in interfaceInteractionController
-
removeAllAdaptersForTarget
- Specified by:
removeAllAdaptersForTarget
in interfaceInteractionController
-
setPropertyAdapter
- Specified by:
setPropertyAdapter
in interfaceInteractionController
-
removePropertyAdapter
- Specified by:
removePropertyAdapter
in interfaceInteractionController
-
addAdapter
- Specified by:
addAdapter
in interfaceInteractionController
-
removeAdapter
- Specified by:
removeAdapter
in 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
-