Class ProcessTaxonomy
- java.lang.Object
-
- fi.tut.mei.capabilityQueryLib.model.ProcessTaxonomy
-
- All Implemented Interfaces:
Comparable<ProcessTaxonomy>
public class ProcessTaxonomy extends Object implements Comparable<ProcessTaxonomy>
This class represents a process taxonomy.- Author:
- hylli
-
-
Constructor Summary
Constructors Constructor Description ProcessTaxonomy(String name)
Create a ProcessTaxonomy with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCapability(Capability capability)
Add a capability that implements this process taxonomyvoid
addChild(ProcessTaxonomy child)
Add a new child process taxonomy.int
compareTo(ProcessTaxonomy taxonomy)
Compares based on name.Set<Capability>
getAllCapabilities()
Get all capabilities that directly or indirectly implement this process taxonomy.Set<Capability>
getCapabilities()
Get the capabilities that implement this process taxonomy.Set<ProcessTaxonomy>
getChildren()
Get the child process taxonomies.String
getDescription()
Get the description of this process taxonomy.String
getName()
Get the name.ProcessTaxonomy
getParent()
Get the parent of this process taxonomy.
-
-
-
Constructor Detail
-
ProcessTaxonomy
public ProcessTaxonomy(String name)
Create a ProcessTaxonomy with the given name.- Parameters:
name
- The name of the process taxonomy.
-
-
Method Detail
-
getParent
public ProcessTaxonomy getParent()
Get the parent of this process taxonomy.- Returns:
- the parent, null of no parent
-
getDescription
public String getDescription()
Get the description of this process taxonomy.- Returns:
- the description
-
getName
public String getName()
Get the name.- Returns:
- the name
-
getChildren
public Set<ProcessTaxonomy> getChildren()
Get the child process taxonomies.- Returns:
- the children
-
addChild
public void addChild(ProcessTaxonomy child)
Add a new child process taxonomy. Also adds this as a parent for the new child.- Parameters:
child
- the child process taxonomy
-
getCapabilities
public Set<Capability> getCapabilities()
Get the capabilities that implement this process taxonomy.- Returns:
- the capabilities
-
getAllCapabilities
public Set<Capability> getAllCapabilities()
Get all capabilities that directly or indirectly implement this process taxonomy. This includes capabilities of this process taxonomy and also the capabilities of its children and their children and so on.- Returns:
- All capabilities that implement this process taxonomy.
-
addCapability
public void addCapability(Capability capability)
Add a capability that implements this process taxonomy- Parameters:
capability
- a capability
-
compareTo
public int compareTo(ProcessTaxonomy taxonomy)
Compares based on name.- Specified by:
compareTo
in interfaceComparable<ProcessTaxonomy>
- See Also:
Comparable.compareTo(java.lang.Object)
-
-