org.yawlfoundation.yawl.resourcing.resource.nonhuman
Class NonHumanCategory

java.lang.Object
  extended by 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

Field Summary
protected  String _categoryName
           
protected  String _description
           
protected  String _notes
           
protected  Set<NonHumanSubCategory> _subcategories
           
 
Constructor Summary
NonHumanCategory()
           
NonHumanCategory(String name)
           
 
Method Summary
 void addResource(NonHumanResource resource, String subCategoryName)
           
 boolean addSubCategory(NonHumanSubCategory subCategory)
           
 boolean addSubCategory(String subCategory)
           
 int compareTo(NonHumanCategory other)
           
 void fromXML(String xml)
           
 void fromXNode(XNode node)
           
 String getDescription()
           
 String getID()
           
 String getName()
           
 String getNotes()
           
 Set<NonHumanResource> getResources()
           
 NonHumanSubCategory getResourceSubCategory(NonHumanResource resource)
           
 Set<NonHumanSubCategory> getSubCategories()
           
 NonHumanSubCategory getSubCategory(String name)
           
 int getSubCategoryCount()
           
 Set<String> getSubCategoryNames()
           
 Set<NonHumanResource> getSubCategoryResources(String subCategoryName)
           
 boolean hasResource(NonHumanResource resource, String subCategoryName)
           
 boolean hasSubCategory(String name)
           
 boolean moveToSubCategory(NonHumanResource resource, String subCategory)
           
 boolean removeFromAll(NonHumanResource resource)
           
 boolean removeResource(NonHumanResource resource, String subCategoryName)
           
 boolean removeSubCategory(String name)
           
 void setDescription(String description)
           
 void setID(String id)
           
 void setName(String name)
           
 void setNotes(String notes)
           
 String toString()
           
 String toXML()
           
 XNode toXNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_categoryName

protected String _categoryName

_description

protected String _description

_notes

protected String _notes

_subcategories

protected Set<NonHumanSubCategory> _subcategories
Constructor Detail

NonHumanCategory

public NonHumanCategory()

NonHumanCategory

public NonHumanCategory(String name)
Method Detail

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.