org.processmining.framework.models.orgmodel
Class Task

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

public class Task
extends java.lang.Object
implements LogEventProvider, java.lang.Cloneable

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Minseok Song

Constructor Summary
Task(java.lang.String id, java.lang.String name)
           
Task(java.lang.String id, java.lang.String name, java.lang.String eventType)
           
 
Method Summary
 void addOrgEntity(OrgEntity orgEntity)
           
 void addResourceToOrgEntity(Resource resource)
           
 java.lang.Object clone()
          Makes a deep copy of the object, i.e., reconstructs the Task 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 getEntityListString()
           
 java.lang.String getEventType()
           
 java.lang.String getID()
           
 LogEvent getLogEvent()
          Gets the log event belonging to this transition.
 java.lang.String getName()
           
 int getNumberOfOrgEntity()
           
 java.util.HashSet getOrgEntities()
           
 boolean hasOrgEntity(OrgEntity orgEntity)
           
 void removeOrgEntity(OrgEntity orgEntity)
           
 void setEventType(java.lang.String type)
           
 void setID(java.lang.String id)
           
 void setLogEvent(LogEvent lme)
          Sets the log event belonging to this transition.
 void setName(java.lang.String name)
           
 void setOrgEntities(java.util.HashSet orgEntities)
           
 java.lang.String toString()
          Returns the name of the task.
 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

Task

public Task(java.lang.String id,
            java.lang.String name)

Task

public Task(java.lang.String id,
            java.lang.String name,
            java.lang.String eventType)
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)

getEventType

public java.lang.String getEventType()

setEventType

public void setEventType(java.lang.String type)

getOrgEntities

public java.util.HashSet getOrgEntities()

getEntityListString

public java.lang.String getEntityListString()

setOrgEntities

public void setOrgEntities(java.util.HashSet orgEntities)

removeOrgEntity

public void removeOrgEntity(OrgEntity orgEntity)

addOrgEntity

public void addOrgEntity(OrgEntity orgEntity)

hasOrgEntity

public boolean hasOrgEntity(OrgEntity orgEntity)

getNumberOfOrgEntity

public int getNumberOfOrgEntity()

addResourceToOrgEntity

public void addResourceToOrgEntity(Resource resource)

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

getLogEvent

public LogEvent getLogEvent()
Gets the log event belonging to this transition.

Specified by:
getLogEvent in interface LogEventProvider
Returns:
the log event associated

setLogEvent

public void setLogEvent(LogEvent lme)
Sets the log event belonging to this transition.

Specified by:
setLogEvent in interface LogEventProvider
Parameters:
lme - the new log event associated

toString

public java.lang.String toString()
Returns the name of the task.

Overrides:
toString in class java.lang.Object
Returns:
the name of the transition

clone

public java.lang.Object clone()
Makes a deep copy of the object, i.e., reconstructs the Task 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