public class CapabilityLibrary extends Object
Constructor and Description |
---|
CapabilityLibrary() |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(String inputName,
String associationName,
String outputName)
connect a capability association to one capability as output and to another as a input
|
List<Capability> |
getCapabilities()
get all of the capabilities
|
Capability |
getCapability(String name)
get a capability with a name
|
CapabilityAssociation |
getCapabilityAssociation(String name)
get capability association by name
|
List<CapabilityAssociation> |
getCapabilityAssociations()
get all capability associations
|
Capability |
getOrCreateCapability(String name)
get a capability with a name.
|
List<Capability> |
searchCapability(String searchTerm,
fi.tut.mei.resdescapi.rescatapi.ResCatAPIInterface.EnumSearchType type)
Search capability by name.
|
public Capability getCapability(String name)
name
- the capability name.public Capability getOrCreateCapability(String name)
name
- capability namepublic List<Capability> searchCapability(String searchTerm, fi.tut.mei.resdescapi.rescatapi.ResCatAPIInterface.EnumSearchType type)
searchTerm
- the search termtype
- how to search: capability name starts with, ends with, contains or exactly matches the search term.public CapabilityAssociation getCapabilityAssociation(String name)
name
- association namepublic List<Capability> getCapabilities()
public List<CapabilityAssociation> getCapabilityAssociations()
public void addAssociation(String inputName, String associationName, String outputName)
inputName
- the name of the capability which gets the association as inputassociationName
- the capability association nameoutputName
- the name of the capability whose output association the association isCopyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.