Class RequiredServiceInfo

java.lang.Object
jadex.requiredservice.RequiredServiceInfo

public class RequiredServiceInfo extends Object
Struct for information about a required service.
  • Field Details

    • SCOPE_NONE

      public static final jadex.providedservice.ServiceScope SCOPE_NONE
      Deprecated.
      Use ServiceScope instead
    • SCOPE_PARENT

      public static final jadex.providedservice.ServiceScope SCOPE_PARENT
      Deprecated.
      Use ServiceScope instead
    • SCOPE_COMPONENT_ONLY

      public static final jadex.providedservice.ServiceScope SCOPE_COMPONENT_ONLY
      Deprecated.
      Use ServiceScope instead
    • SCOPE_COMPONENT

      public static final jadex.providedservice.ServiceScope SCOPE_COMPONENT
      Deprecated.
      Use ServiceScope instead
    • SCOPE_APPLICATION

      public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION
      Deprecated.
      Use ServiceScope instead
    • SCOPE_PLATFORM

      public static final jadex.providedservice.ServiceScope SCOPE_PLATFORM
      Deprecated.
      Use ServiceScope instead
    • SCOPE_APPLICATION_NETWORK

      public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_NETWORK
      Deprecated.
      Use ServiceScope instead
    • SCOPE_NETWORK

      public static final jadex.providedservice.ServiceScope SCOPE_NETWORK
      Deprecated.
      Use ServiceScope instead
    • SCOPE_APPLICATION_GLOBAL

      public static final jadex.providedservice.ServiceScope SCOPE_APPLICATION_GLOBAL
      Deprecated.
      Use ServiceScope instead
    • SCOPE_GLOBAL

      public static final jadex.providedservice.ServiceScope SCOPE_GLOBAL
      Deprecated.
      Use ServiceScope instead
    • MANY

      public static final int MANY
      Constant for multiplicity many.
      See Also:
    • UNDEFINED

      public static final int UNDEFINED
      Constant for multiplicity undefined.
      See Also:
    • name

      protected String name
      The component internal service name.
    • type

      protected jadex.common.ClassInfo type
      The type.
    • tags

      protected Collection<String> tags
      The service tags to search for.
    • min

      protected int min
      The min number of services.
    • max

      protected int max
      The max number of services.
    • binding

      protected RequiredServiceBinding binding
      The default binding.
    • interceptors

      protected List<jadex.common.UnparsedExpression> interceptors
      The list of interceptors.
  • Constructor Details

    • RequiredServiceInfo

      public RequiredServiceInfo()
      Create a new service info.
    • RequiredServiceInfo

      public RequiredServiceInfo(String name, Class<?> type)
      Create a new service info.
    • RequiredServiceInfo

      public RequiredServiceInfo(Class<?> type)
      Create a new service info.
    • RequiredServiceInfo

      public RequiredServiceInfo(String name, Class<?> type, jadex.providedservice.ServiceScope scope)
      Create a new service info.
    • RequiredServiceInfo

      public RequiredServiceInfo(String name, Class<?> type, int min, int max, RequiredServiceBinding binding, Collection<String> tags)
      Create a new service info.
    • RequiredServiceInfo

      public RequiredServiceInfo(String name, jadex.common.ClassInfo type, int min, int max, RequiredServiceBinding binding, Collection<String> tags)
      Create a new service info.
  • Method Details

    • getName

      public String getName()
      Get the name.
      Returns:
      the name.
    • setName

      public RequiredServiceInfo setName(String name)
      Set the name.
      Parameters:
      name - The name to set.
    • getType

      public jadex.common.ClassInfo getType()
      Get the type.
      Returns:
      The type.
    • setType

      public RequiredServiceInfo setType(jadex.common.ClassInfo type)
      Set the type.
      Parameters:
      type - The type to set.
    • getMax

      public int getMax()
      Get the max number of services.
      Returns:
      The max number.
    • setMax

      public RequiredServiceInfo setMax(int max)
      Set the max number of services.
      Parameters:
      max - The max number to set.
    • getMin

      public int getMin()
      Get the minimum number of services.
      Returns:
      The min number of services.
    • setMin

      public RequiredServiceInfo setMin(int min)
      Set the min number of services.
      Parameters:
      min - The min number to set.
    • getDefaultBinding

      public RequiredServiceBinding getDefaultBinding()
      Get the binding.
      Returns:
      the binding.
    • setDefaultBinding

      public RequiredServiceInfo setDefaultBinding(RequiredServiceBinding binding)
      Set the binding.
      Parameters:
      binding - The binding to set.
    • addInterceptor

      public RequiredServiceInfo addInterceptor(jadex.common.UnparsedExpression interceptor)
      Add an interceptor.
      Parameters:
      interceptor - The interceptor.
    • removeInterceptor

      public RequiredServiceInfo removeInterceptor(jadex.common.UnparsedExpression interceptor)
      Remove an interceptor.
      Parameters:
      interceptor - The interceptor.
    • getInterceptors

      public jadex.common.UnparsedExpression[] getInterceptors()
      Get the interceptors.
      Returns:
      All interceptors.
    • getTags

      public Collection<String> getTags()
      Get the tags.
      Returns:
      the tags
    • setTags

      public RequiredServiceInfo setTags(Collection<String> tags)
      Set the tags.
      Parameters:
      tags - The tags to set