net.sf.mpxj
Class TimephasedItem<T>

java.lang.Object
  extended by net.sf.mpxj.TimephasedItem<T>
Type Parameters:
T - payload type
Direct Known Subclasses:
TimephasedCost, TimephasedWork

public abstract class TimephasedItem<T>
extends Object

This class represents an amount, spread over a period of time.


Constructor Summary
TimephasedItem()
           
 
Method Summary
 boolean equals(Object o)
          
 T getAmountPerDay()
          Retrieve the amount per day.
 Date getFinish()
          Retrieve the finish date.
 boolean getModified()
          Retrieve the modified flag.
 Date getStart()
          Retrieve the start date.
 T getTotalAmount()
          Retrieve the total amount.
 int hashCode()
          
 void setAmountPerDay(T amountPerDay)
          Set the amount per day.
 void setFinish(Date finish)
          Set the finish date.
 void setModified(boolean modified)
          Set the modified flag.
 void setStart(Date start)
          Set the start date.
 void setTotalAmount(T totalAmount)
          Set the total amount.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimephasedItem

public TimephasedItem()
Method Detail

getStart

public Date getStart()
Retrieve the start date.

Returns:
start date

setStart

public void setStart(Date start)
Set the start date.

Parameters:
start - start date

getAmountPerDay

public T getAmountPerDay()
Retrieve the amount per day.

Returns:
amount per day

setAmountPerDay

public void setAmountPerDay(T amountPerDay)
Set the amount per day.

Parameters:
amountPerDay - amount per day

getModified

public boolean getModified()
Retrieve the modified flag.

Returns:
modified flag

setModified

public void setModified(boolean modified)
Set the modified flag.

Parameters:
modified - modified flag

getTotalAmount

public T getTotalAmount()
Retrieve the total amount.

Returns:
total amount

setTotalAmount

public void setTotalAmount(T totalAmount)
Set the total amount.

Parameters:
totalAmount - total amount

getFinish

public Date getFinish()
Retrieve the finish date.

Returns:
finish date

setFinish

public void setFinish(Date finish)
Set the finish date.

Parameters:
finish - finish date

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.