Package jadex.core
Interface IComponent
- All Known Implementing Classes:
Component
public interface IComponent
Interface for a component.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addComponentListener
(IComponentListener listener, String... types) static jadex.future.IFuture
<IExternalAccess> static jadex.future.IFuture
<IExternalAccess> create
(Object pojo, ComponentIdentifier cid) Get the external access.Get the external access.<T> T
getFeature
(Class<T> type) Get the feature instance for the given type.getId()
Get the id.getPojo()
Get the pojo.static void
removeComponentListener
(IComponentListener listener, String... types) void
Terminate the component.static jadex.future.IFuture
<Void> static void
default jadex.future.IFuture
<Boolean> Wait for termination.static jadex.future.IFuture
<Boolean> Wait for termination.
-
Field Details
-
COMPONENT_ADDED
- See Also:
-
COMPONENT_REMOVED
- See Also:
-
COMPONENT_LASTREMOVED
- See Also:
-
-
Method Details
-
getId
ComponentIdentifier getId()Get the id.- Returns:
- The id.
-
getFeature
Get the feature instance for the given type. Instantiates lazy features if needed. -
getExternalAccess
IExternalAccess getExternalAccess()Get the external access.- Returns:
- The external access.
-
getExternalAccess
Get the external access.- Parameters:
The
- id of the component.- Returns:
- The external access.
-
terminate
void terminate()Terminate the component. -
getPojo
Object getPojo()Get the pojo.- Returns:
- The pojo.
-
waitForTermination
Wait for termination.- Returns:
- True on termination; false on component not found.
-
addComponentListener
-
removeComponentListener
-
create
-
create
-
terminate
-
waitForLastComponentTerminated
static void waitForLastComponentTerminated() -
waitForTermination
Wait for termination.- Parameters:
cid
- The component id;- Returns:
- True on termination; false on component not found.
-