com.jrefinery.data
Class TimeAllocation

java.lang.Object
  extended by com.jrefinery.data.TimeAllocation
All Implemented Interfaces:
java.io.Serializable

public class TimeAllocation
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.util.Date end
          End Time
 java.util.Date start
          Start Time
 
Constructor Summary
TimeAllocation(java.util.Date start, java.util.Date end)
          Contructor : to be used when no properties are associated with the event
TimeAllocation(java.util.Date start, java.util.Date end, TaskProperties properties)
          Contructor : To be used when a property is associated with the event
TimeAllocation(TimeAllocation clone)
           
 
Method Summary
 java.lang.Long getDuration()
          To get the duration of the event
 java.util.Date getEnd()
          To get the end time
 long getLength()
          To get the length of an event
 TaskProperties getProperties()
          To get the properties to be associated with the event
 boolean getSelected()
          To get the selected state of the event
 java.util.Date getStart()
          To get the start time
 void setDuration(long time)
          To set the duration of a task.
 void setEnd(java.util.Date end)
          To set the end time.
 void setProperties(TaskProperties properties)
          To set the property object
 void setSelected(boolean value)
          To set the selected state of an event
 void setStart(java.util.Date start)
          To set the start time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

public java.util.Date start
Start Time


end

public java.util.Date end
End Time

Constructor Detail

TimeAllocation

public TimeAllocation(java.util.Date start,
                      java.util.Date end)
Contructor : to be used when no properties are associated with the event


TimeAllocation

public TimeAllocation(java.util.Date start,
                      java.util.Date end,
                      TaskProperties properties)
Contructor : To be used when a property is associated with the event


TimeAllocation

public TimeAllocation(TimeAllocation clone)
Method Detail

getStart

public java.util.Date getStart()
To get the start time


setStart

public void setStart(java.util.Date start)
To set the start time


getEnd

public java.util.Date getEnd()
To get the end time


setEnd

public void setEnd(java.util.Date end)
To set the end time.


getLength

public long getLength()
To get the length of an event


getProperties

public TaskProperties getProperties()
To get the properties to be associated with the event


setProperties

public void setProperties(TaskProperties properties)
To set the property object


getDuration

public java.lang.Long getDuration()
To get the duration of the event


setDuration

public void setDuration(long time)
To set the duration of a task. The end time is adjusted when the duration is changed


setSelected

public void setSelected(boolean value)
To set the selected state of an event


getSelected

public boolean getSelected()
To get the selected state of the event



Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.