Class CapabilityAssociation
- java.lang.Object
-
- fi.tut.mei.capabilityQueryLib.model.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 Summary
Constructors Constructor Description CapabilityAssociation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addInputAndOutput(Capability input, Capability output)
Convenience method for adding a capability as output and another as inputvoid
addInputCapability(Capability capability)
connect the capability and association as inputvoid
addOutputCapability(Capability capability)
combine the capability and association as outputsCapability
getInput()
Get the combined capability whose input this association is.Set<Capability>
getInputs()
Deprecated.CapabilityAssociation now has always only one input which this method returns in a set but usegetInput()
instead.String
getName()
Deprecated.CapabilityAssociations no longer have names due to a change in how combined capabilities are modeled in the ontology.Set<Capability>
getOutputs()
get the capabilities that has this association as output
-
-
-
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 usegetInput()
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 inputoutput
- capability that has this association as an output
-
-