org.yawlfoundation.yawl.resourcing.resource
Class AbstractResource

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.AbstractResource
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
NonHumanResource, Participant

public abstract class AbstractResource
extends Object
implements Cloneable

An abstract class representing a resource entity.

Author:
Michael Adams v0.1, 03/08/2007

Nested Class Summary
static class AbstractResource.BlockType
           
 
Field Summary
protected  Long _blockedDuration
           
protected  AbstractResource.BlockType _blockType
           
protected  String _description
           
protected  boolean _isAvailable
           
protected  String _notes
           
protected  String _resourceID
           
 
Constructor Summary
protected AbstractResource()
           
 
Method Summary
protected  Object clone()
           
 boolean equals(Object o)
           
 long getBlockedDuration()
           
 String getBlockType()
           
 String getDescription()
           
 String getID()
           
abstract  String getName()
           
 String getNotes()
           
 int hashCode()
           
 boolean isAvailable()
           
 boolean isAvailable(long from, long to)
           
protected  void merge(AbstractResource resource)
           
 void setBlockedDuration(long duration)
           
 void setBlockedDuration(String duration)
           
 void setBlockType(String s)
           
 void setDescription(String desc)
           
 void setID(String id)
           
 void setNotes(String notes)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_resourceID

protected String _resourceID

_isAvailable

protected boolean _isAvailable

_description

protected String _description

_notes

protected String _notes

_blockedDuration

protected Long _blockedDuration

_blockType

protected AbstractResource.BlockType _blockType
Constructor Detail

AbstractResource

protected AbstractResource()
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

merge

protected void merge(AbstractResource resource)

getName

public abstract String getName()

getID

public String getID()

setID

public void setID(String id)

isAvailable

public boolean isAvailable()

isAvailable

public boolean isAvailable(long from,
                           long to)

getNotes

public String getNotes()

setNotes

public void setNotes(String notes)

getDescription

public String getDescription()

setDescription

public void setDescription(String desc)

getBlockedDuration

public long getBlockedDuration()

setBlockedDuration

public void setBlockedDuration(long duration)

setBlockedDuration

public void setBlockedDuration(String duration)

getBlockType

public String getBlockType()

setBlockType

public void setBlockType(String s)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 The YAWL Foundation.