org.yawlfoundation.yawl.resourcing.calendar
Class TimeSlot

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.calendar.TimeSlot

public class TimeSlot
extends Object

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

Constructor Summary
TimeSlot(CalendarEntry entry)
           
TimeSlot(long from, long to)
           
TimeSlot(long from, long to, String status)
           
TimeSlot(long from, long to, String status, int percentAvailable)
           
 
Method Summary
 void fromXML(String xml)
           
 int getAvailability()
           
 long getEnd()
           
 long getStart()
           
 String getStatus()
           
 void setAvailability(int available)
           
 void setEnd(long end)
           
 void setStart(long start)
           
 void setStatus(String status)
           
 String toXML()
           
 XNode toXNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSlot

public TimeSlot(long from,
                long to)

TimeSlot

public TimeSlot(long from,
                long to,
                String status)

TimeSlot

public TimeSlot(long from,
                long to,
                String status,
                int percentAvailable)

TimeSlot

public TimeSlot(CalendarEntry entry)
Method Detail

getStart

public long getStart()

setStart

public void setStart(long start)

getEnd

public long getEnd()

setEnd

public void setEnd(long end)

getStatus

public String getStatus()

setStatus

public void setStatus(String status)

getAvailability

public int getAvailability()

setAvailability

public void setAvailability(int available)

toXML

public String toXML()

toXNode

public XNode toXNode()

fromXML

public void fromXML(String xml)
             throws NumberFormatException
Throws:
NumberFormatException


Copyright © 2004-2012 The YAWL Foundation.