public class Capability extends Object
Constructor and Description |
---|
Capability(String name)
Create a capability with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addInputAssociation(CapabilityAssociation association)
Add a new input association for the capability
|
void |
addOutputAssociation(CapabilityAssociation association)
add a new output capability association
|
void |
addParameterAssociationForParameter(ParameterAssociation<Parameter> paramAssoc)
Add a parameter association to the capability.
|
void |
addParameterAssociationForParameterObject(String property,
ParameterAssociation<ParameterObject> paramAssoc)
Add a parameter association for a object property.
|
String |
getDescription()
Get the capability's description text.
|
ProcessTaxonomy |
getImplements()
Get the process taxonomy that this capability implements if any.
|
Set<CapabilityAssociation> |
getInputs()
get the input capability associations
|
String |
getName()
get the capability name
|
Set<CapabilityAssociation> |
getOutputs()
get the output capability associations
|
ParameterAssociation<Parameter> |
getParameterAssociation(Parameter param)
Get parameter association for the given parameter.
|
ParameterAssociation<ParameterObject> |
getParameterAssociation(String property)
Get parameter association for the given property.
|
Collection<ParameterAssociation<Parameter>> |
getParameterAssociationsForParameters()
Get information about simple capability parameters such as payload associated with this capability.
|
Set<String> |
getParameterObjectProperties()
Get the different properties whose value is parameter association to a parameter object
|
Set<Parameter> |
getParameters()
Deprecated.
consider using
getParameterAssociationsForParameters() instead. You get the parameters via the ParameterAssociations and cardinality information. |
boolean |
isCombinedCapability()
Tells if this capability is a combined capability ie.e it has input associations.
|
void |
setDescription(String description)
Set the capability's description.
|
void |
setImplements(ProcessTaxonomy process)
Set a process taxonomy that this capability implements.
|
void |
setName(String name)
set capability name
|
String |
toString() |
public Capability(String name)
name
- the capability namepublic String getName()
public void setName(String name)
name
- the name to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic void setImplements(ProcessTaxonomy process)
process
- a process taxonomy that this capability implementspublic ProcessTaxonomy getImplements()
public Set<CapabilityAssociation> getOutputs()
public Set<CapabilityAssociation> getInputs()
public void addOutputAssociation(CapabilityAssociation association)
association
- the output associationpublic void addInputAssociation(CapabilityAssociation association)
association
- the input associationpublic boolean isCombinedCapability()
@Deprecated public Set<Parameter> getParameters()
getParameterAssociationsForParameters()
instead. You get the parameters via the ParameterAssociations and cardinality information.public Collection<ParameterAssociation<Parameter>> getParameterAssociationsForParameters()
public ParameterAssociation<Parameter> getParameterAssociation(Parameter param)
param
- the parameterpublic ParameterAssociation<ParameterObject> getParameterAssociation(String property)
property
- the property for example hasItemSizepublic void addParameterAssociationForParameter(ParameterAssociation<Parameter> paramAssoc)
paramAssoc
- the parameter associationpublic void addParameterAssociationForParameterObject(String property, ParameterAssociation<ParameterObject> paramAssoc)
property
- the property for example hasItemSizeparamAssoc
- the association. for example to an ItemSize parameter objectCopyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.