org.yawlfoundation.yawl.resourcing.calendar.utilisation
Class Activity

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.calendar.utilisation.StatusMessage
      extended by org.yawlfoundation.yawl.resourcing.calendar.utilisation.Activity

public class Activity
extends StatusMessage

Author:
Michael Adams
Created/Last Date:
6/10/2010

Nested Class Summary
static class Activity.Phase
           
 
Constructor Summary
Activity()
           
Activity(String name, String startTaskID, String endTaskID, String from, String to, String duration)
           
Activity(XNode node)
           
 
Method Summary
 boolean addReservation(Reservation r)
           
 void fromXNode(XNode node)
           
 String getDuration()
           
 long getDurationMSecs()
           
 String getEndTaskID()
           
 String getFrom()
           
 long getFromAsLong()
           
 String getName()
           
 String getPhase()
           
 List<XNode> getRelationList()
           
 List<Reservation> getReservationList()
           
 String getStartTaskID()
           
 String getTo()
           
 long getToAsLong()
           
 List<XNode> getTransferList()
           
 String getType()
           
 boolean hasErrors()
           
 boolean hasReservation()
           
 boolean hasValidPhase()
           
 boolean isEOU()
           
 boolean isSOU()
           
 boolean removeReservation(Reservation r)
           
 boolean reservationsHaveErrors()
           
 void setDuration(String duration)
           
 void setEndTaskID(String id)
           
 void setFrom(String from)
           
 void setName(String name)
           
 void setPhase(String phase)
           
 void setRelationList(List<XNode> list)
           
 void setReservationList(List<Reservation> list)
           
 void setStartTaskID(String id)
           
 void setTo(String to)
           
 void setTransferList(List<XNode> list)
           
 void setType(String type)
           
 String toXML()
           
 XNode toXNode()
           
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.calendar.utilisation.StatusMessage
addAttributes, getError, getWarning, hasError, hasMessage, hasWarning, setError, setWarning, toXNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activity

public Activity()

Activity

public Activity(String name,
                String startTaskID,
                String endTaskID,
                String from,
                String to,
                String duration)

Activity

public Activity(XNode node)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getType

public String getType()

setType

public void setType(String type)

getStartTaskID

public String getStartTaskID()

setStartTaskID

public void setStartTaskID(String id)

getEndTaskID

public String getEndTaskID()

setEndTaskID

public void setEndTaskID(String id)

getPhase

public String getPhase()

setPhase

public void setPhase(String phase)

hasValidPhase

public boolean hasValidPhase()

isSOU

public boolean isSOU()

isEOU

public boolean isEOU()

getFrom

public String getFrom()

setFrom

public void setFrom(String from)

getFromAsLong

public long getFromAsLong()

getTo

public String getTo()

setTo

public void setTo(String to)

getToAsLong

public long getToAsLong()

getDuration

public String getDuration()

setDuration

public void setDuration(String duration)

getDurationMSecs

public long getDurationMSecs()

getReservationList

public List<Reservation> getReservationList()

setReservationList

public void setReservationList(List<Reservation> list)

addReservation

public boolean addReservation(Reservation r)

removeReservation

public boolean removeReservation(Reservation r)

hasReservation

public boolean hasReservation()

getRelationList

public List<XNode> getRelationList()

setRelationList

public void setRelationList(List<XNode> list)

getTransferList

public List<XNode> getTransferList()

setTransferList

public void setTransferList(List<XNode> list)

hasErrors

public boolean hasErrors()

reservationsHaveErrors

public boolean reservationsHaveErrors()

toXML

public String toXML()

toXNode

public XNode toXNode()

fromXNode

public void fromXNode(XNode node)
Overrides:
fromXNode in class StatusMessage


Copyright © 2004-2012 The YAWL Foundation.