Class CapabilityAssociation


  • public class CapabilityAssociation
    extends Object
    A capability association is used in defining how capabilities combine to form other capabilities A combined capability requires multiple inputs. A input can be a single capability that is required or a group of alternatives of which one is required. This class represents that kind of input. It is a input for a single combined capability and can have one or more outputs i.e. alternatives.
    Author:
    hylli
    • Constructor Detail

      • CapabilityAssociation

        public CapabilityAssociation()
    • Method Detail

      • getName

        @Deprecated
        public String getName()
        Deprecated.
        CapabilityAssociations no longer have names due to a change in how combined capabilities are modeled in the ontology.
        get association name
        Returns:
        the name
      • getOutputs

        public Set<Capability> getOutputs()
        get the capabilities that has this association as output
        Returns:
        the outputs
      • getInputs

        @Deprecated
        public Set<Capability> getInputs()
        Deprecated.
        CapabilityAssociation now has always only one input which this method returns in a set but use getInput() instead.
        get the capabilities that have this association as input
        Returns:
        the inputs
      • getInput

        public Capability getInput()
        Get the combined capability whose input this association is.
        Returns:
        combined capability whose input this is
      • addInputCapability

        public void addInputCapability​(Capability capability)
        connect the capability and association as input
        Parameters:
        capability - capability that has this association as an input
      • addOutputCapability

        public void addOutputCapability​(Capability capability)
        combine the capability and association as outputs
        Parameters:
        capability - capability that is a output for this association
      • addInputAndOutput

        public void addInputAndOutput​(Capability input,
                                      Capability output)
        Convenience method for adding a capability as output and another as input
        Parameters:
        input - capability that has this association as an input
        output - capability that has this association as an output