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

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.AbstractResource
      extended by org.yawlfoundation.yawl.resourcing.resource.nonhuman.NonHumanResource
All Implemented Interfaces:
Cloneable, Comparable

public class NonHumanResource
extends AbstractResource
implements Comparable, Cloneable

Author:
Michael Adams
Created/Last Date:
24/08/2010

Nested Class Summary
 
Nested classes/interfaces inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResource
AbstractResource.BlockType
 
Field Summary
 
Fields inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResource
_blockedDuration, _blockType, _description, _isAvailable, _notes, _resourceID
 
Constructor Summary
NonHumanResource()
           
NonHumanResource(org.jdom.Element e)
           
NonHumanResource(String id)
           
NonHumanResource(String name, NonHumanCategory category, String subCategoryName)
           
 
Method Summary
 void clearCategory()
           
 NonHumanResource clone()
           
 int compareTo(Object o)
           
 void detachSubCategory()
           
 void fromXML(org.jdom.Element e)
           
 NonHumanCategory getCategory()
           
 String getName()
           
 NonHumanSubCategory getSubCategory()
           
 String getSubCategoryName()
           
 boolean hasCategory(String category, String subCategory)
           
 void merge(NonHumanResource resource)
           
 void setCategory(NonHumanCategory newCategory)
           
 void setName(String name)
           
 void setSubCategory(String subCategory)
           
 String toXML()
           
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResource
equals, getBlockedDuration, getBlockType, getDescription, getID, getNotes, hashCode, isAvailable, isAvailable, merge, setBlockedDuration, setBlockedDuration, setBlockType, setDescription, setID, setNotes, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonHumanResource

public NonHumanResource()

NonHumanResource

public NonHumanResource(String id)

NonHumanResource

public NonHumanResource(String name,
                        NonHumanCategory category,
                        String subCategoryName)

NonHumanResource

public NonHumanResource(org.jdom.Element e)
Method Detail

getName

public String getName()
Specified by:
getName in class AbstractResource

setName

public void setName(String name)

getCategory

public NonHumanCategory getCategory()

setCategory

public void setCategory(NonHumanCategory newCategory)

clearCategory

public void clearCategory()

getSubCategory

public NonHumanSubCategory getSubCategory()

getSubCategoryName

public String getSubCategoryName()

setSubCategory

public void setSubCategory(String subCategory)

detachSubCategory

public void detachSubCategory()

hasCategory

public boolean hasCategory(String category,
                           String subCategory)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

clone

public NonHumanResource clone()
                       throws CloneNotSupportedException
Overrides:
clone in class AbstractResource
Throws:
CloneNotSupportedException

merge

public void merge(NonHumanResource resource)

toXML

public String toXML()

fromXML

public void fromXML(org.jdom.Element e)


Copyright © 2004-2012 The YAWL Foundation.