Package jadex.core

Interface IComponent

All Known Implementing Classes:
Component

public interface IComponent
Interface for a component.
  • Field Details

  • Method Details

    • getId

      Get the id.
      Returns:
      The id.
    • getFeature

      <T> T getFeature(Class<T> type)
      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

      IExternalAccess getExternalAccess(ComponentIdentifier cid)
      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

      default jadex.future.IFuture<Boolean> waitForTermination()
      Wait for termination.
      Returns:
      True on termination; false on component not found.
    • addComponentListener

      static void addComponentListener(IComponentListener listener, String... types)
    • removeComponentListener

      static void removeComponentListener(IComponentListener listener, String... types)
    • create

      static jadex.future.IFuture<IExternalAccess> create(Object pojo)
    • create

      static jadex.future.IFuture<IExternalAccess> create(Object pojo, ComponentIdentifier cid)
    • terminate

      static jadex.future.IFuture<Void> terminate(ComponentIdentifier cid)
    • waitForLastComponentTerminated

      static void waitForLastComponentTerminated()
    • waitForTermination

      static jadex.future.IFuture<Boolean> waitForTermination(ComponentIdentifier cid)
      Wait for termination.
      Parameters:
      cid - The component id;
      Returns:
      True on termination; false on component not found.