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

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

public class Reservation
extends StatusMessage

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

Constructor Summary
Reservation()
           
Reservation(String id, String statusToBe, String status, UtilisationResource resource, int workload)
           
Reservation(XNode node)
           
 
Method Summary
 void fromXNode(XNode node)
           
 String getReservationID()
           
 long getReservationIDAsLong()
           
 UtilisationResource getResource()
           
 String getStatus()
           
 String getStatusToBe()
           
 int getWorkload()
           
 boolean hasErrors()
           
 boolean hasResource()
           
 boolean isUpdate()
           
 void setReservationID(String id)
           
 void setResource(UtilisationResource resource)
           
 void setStatus(String status)
           
 void setStatusToBe(String status)
           
 void setWorkload(int workload)
           
 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

Reservation

public Reservation()

Reservation

public Reservation(String id,
                   String statusToBe,
                   String status,
                   UtilisationResource resource,
                   int workload)

Reservation

public Reservation(XNode node)
Method Detail

getReservationID

public String getReservationID()

isUpdate

public boolean isUpdate()

setReservationID

public void setReservationID(String id)

getReservationIDAsLong

public long getReservationIDAsLong()

getStatusToBe

public String getStatusToBe()

setStatusToBe

public void setStatusToBe(String status)

getStatus

public String getStatus()

setStatus

public void setStatus(String status)

getResource

public UtilisationResource getResource()

setResource

public void setResource(UtilisationResource resource)

hasResource

public boolean hasResource()

getWorkload

public int getWorkload()

setWorkload

public void setWorkload(int workload)

hasErrors

public boolean hasErrors()

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.