Interface Activates<Out extends Service,In extends Service>

All Superinterfaces:
org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,In>, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.model.reference.relations.Relation<Out,In>, org.gcube.informationsystem.base.reference.relations.RelationElement<Out,In>, org.gcube.informationsystem.base.reference.SchemaMixedElement, Serializable
All Known Implementing Classes:
ActivatesImpl

@TypeMetadata(name="Activates", description="Activates has a [Service](type:Service) instance both as source and target as well as [CallsFor](type:CallsFor) but with a complete different semantic. Activates is used to indicate that the source [Service](type:Service) of the relation enables the operation of the target Service. Examples are between a [VirtualMachine](type:VirtualMachine) and a [HostingNode](type:HostingNode) to capture that the [VirtualMachine](type:VirtualMachine) is operating the [HostingNode](type:HostingNode). Another example is between a [VirtualMachine](type:VirtualMachine) and an [EService](type:EService), e.g., between a [VirtualMachine](type:VirtualMachine) and a database instance. This relation can be created also between a [HostingNode](type:HostingNode) and one [EService](type:EService), e.g., to represent a container e.g., Tomcat and the web-service(s) it is operating. Activates is also used between an [EService](type:EService) and a [RunningPlugin](type:RunningPlugin) which enriches the functionality offered by the source service.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Activates<Out extends Service,In extends Service> extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,In>
Activates has a Service instance both as source and target as well as CallsFor but with a complete different semantic. Activates is used to indicate that the source Service of the relation enables the operation of the target Service. Examples are between a VirtualMachine and a HostingNode to capture that the VirtualMachine is operating the HostingNode. Another example is between a VirtualMachine and an EService, e.g., between a VirtualMachine and a database instance. This relation can be created also between a HostingNode and one EService, e.g., to represent a container e.g., Tomcat and the web-service(s) it is operating. Activates is also used between an EService and a RunningPlugin which enriches the functionality offered by the source service.
Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the Activates relation type.

    Fields inherited from interface org.gcube.informationsystem.base.reference.Element

    DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER

    Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

    CONTEXTS_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

    ID_PROPERTY, METADATA_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

    PROPAGATION_CONSTRAINT_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

    SOURCE_PROPERTY, TARGET_PROPERTY
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <Out extends Service, In extends Service>
    Activates<Out,In>
    getDefaultInstance(Out out, In in)
    Returns a default instance of Activates

    Methods inherited from interface org.gcube.informationsystem.base.reference.Element

    getTypeName

    Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

    getContexts

    Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    getExpectedtype, getSupertypes

    Methods inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

    getAdditionalProperties, getAdditionalProperty, getPropagationConstraint, getSource, getTarget, setAdditionalProperties, setAdditionalProperty, setPropagationConstraint, setSource, setTarget

    Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

    getID, getMetadata, setID, setMetadata
  • Field Details

  • Method Details

    • getDefaultInstance

      static <Out extends Service, In extends Service> Activates<Out,In> getDefaultInstance(Out out, In in)
      Returns a default instance of Activates
      Type Parameters:
      Out - the source Service type
      In - the target Service type
      Parameters:
      out - the source Service instance
      in - the target Service instance
      Returns:
      a default instance of Activates