org.yawlfoundation.yawl.resourcing.resource.nonhuman
Class NonHumanCategory
java.lang.Object
org.yawlfoundation.yawl.resourcing.resource.nonhuman.NonHumanCategory
- All Implemented Interfaces:
- Comparable<NonHumanCategory>
public class NonHumanCategory
- extends Object
- implements Comparable<NonHumanCategory>
A NHR Category is a grouping class for a set of NHR (much like a Role groups a
set of participants)
- Author:
- Michael Adams
- Created/Last Date:
- 25/11/2010
_categoryName
protected String _categoryName
_description
protected String _description
_notes
protected String _notes
_subcategories
protected Set<NonHumanSubCategory> _subcategories
NonHumanCategory
public NonHumanCategory()
NonHumanCategory
public NonHumanCategory(String name)
compareTo
public int compareTo(NonHumanCategory other)
- Specified by:
compareTo in interface Comparable<NonHumanCategory>
getID
public String getID()
setID
public void setID(String id)
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getNotes
public String getNotes()
setNotes
public void setNotes(String notes)
getSubCategories
public Set<NonHumanSubCategory> getSubCategories()
getSubCategoryNames
public Set<String> getSubCategoryNames()
getSubCategoryCount
public int getSubCategoryCount()
addSubCategory
public boolean addSubCategory(String subCategory)
addSubCategory
public boolean addSubCategory(NonHumanSubCategory subCategory)
hasSubCategory
public boolean hasSubCategory(String name)
removeSubCategory
public boolean removeSubCategory(String name)
getSubCategory
public NonHumanSubCategory getSubCategory(String name)
getResourceSubCategory
public NonHumanSubCategory getResourceSubCategory(NonHumanResource resource)
getSubCategoryResources
public Set<NonHumanResource> getSubCategoryResources(String subCategoryName)
moveToSubCategory
public boolean moveToSubCategory(NonHumanResource resource,
String subCategory)
getResources
public Set<NonHumanResource> getResources()
addResource
public void addResource(NonHumanResource resource,
String subCategoryName)
removeResource
public boolean removeResource(NonHumanResource resource,
String subCategoryName)
removeFromAll
public boolean removeFromAll(NonHumanResource resource)
hasResource
public boolean hasResource(NonHumanResource resource,
String subCategoryName)
toString
public String toString()
- Overrides:
toString in class Object
toXNode
public XNode toXNode()
toXML
public String toXML()
fromXML
public void fromXML(String xml)
fromXNode
public void fromXNode(XNode node)
Copyright © 2004-2012 The YAWL Foundation.