Class ServiceEvent

java.lang.Object
jadex.providedservice.impl.search.ServiceEvent

public class ServiceEvent extends Object
Service event used if the service registry is used in event mode.
  • Field Details

    • SERVICE_ADDED

      public static final int SERVICE_ADDED
      Service was added event.
      See Also:
    • SERVICE_REMOVED

      public static final int SERVICE_REMOVED
      Service was removed event.
      See Also:
    • SERVICE_CHANGED

      public static final int SERVICE_CHANGED
      Service changed.
      See Also:
    • type

      protected int type
      Event type.
    • service

      protected IServiceIdentifier service
      The service.
  • Constructor Details

    • ServiceEvent

      public ServiceEvent()
      Bean constructor.
    • ServiceEvent

      public ServiceEvent(IServiceIdentifier service, int eventtype)
      Creates the service event.
      Parameters:
      service - The affected service.
      eventtype - The event type.
  • Method Details

    • getType

      public int getType()
      Gets the event type.
      Returns:
      The event type.
    • setType

      public void setType(int type)
      Sets the event type.
      Parameters:
      eventtype - The event type.
    • getService

      public IServiceIdentifier getService()
      Gets the service.
      Returns:
      The service.
    • setService

      public void setService(IServiceIdentifier service)
      Sets the service.
      Parameters:
      service - The service.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class Object