org.processmining.framework.models.orgmodel
Class Resource

java.lang.Object
  extended by org.processmining.framework.models.orgmodel.Resource
All Implemented Interfaces:
java.lang.Cloneable

public class Resource
extends java.lang.Object
implements java.lang.Cloneable


Constructor Summary
Resource(java.lang.String id, java.lang.String name)
           
 
Method Summary
 void addOrgEntity(OrgEntity orgEntity)
           
 java.lang.Object clone()
          Makes a deep copy of the object, i.e., reconstructs the Resource Note that this method needs to be extended as soon as there are attributes added to the class which are not primitive or immutable.
 java.lang.String getID()
           
 java.lang.String getName()
           
 int getNumberOfOrgEntity()
           
 boolean hasOrgEntity(OrgEntity orgEntity)
           
 void removeOrgEntity(OrgEntity orgEntity)
           
 void setID(java.lang.String id)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 void writeToXML(java.io.Writer bw)
          Export to OrgModel file.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resource

public Resource(java.lang.String id,
                java.lang.String name)
Method Detail

getID

public java.lang.String getID()

setID

public void setID(java.lang.String id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

removeOrgEntity

public void removeOrgEntity(OrgEntity orgEntity)

addOrgEntity

public void addOrgEntity(OrgEntity orgEntity)

hasOrgEntity

public boolean hasOrgEntity(OrgEntity orgEntity)

getNumberOfOrgEntity

public int getNumberOfOrgEntity()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

writeToXML

public void writeToXML(java.io.Writer bw)
                throws java.io.IOException
Export to OrgModel file.

Parameters:
bw - Writer
Throws:
java.io.IOException - If writing fails

clone

public java.lang.Object clone()
Makes a deep copy of the object, i.e., reconstructs the Resource Note that this method needs to be extended as soon as there are attributes added to the class which are not primitive or immutable.

Overrides:
clone in class java.lang.Object
Returns:
the cloned object