com.partnersoft.v3x.apps.Staker.domain
Class UnitOnASpan

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.domain.UnitOnASpan
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class UnitOnASpan
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

This is a unit which has been added to a span.

See Also:
Serialized Form

Constructor Summary
UnitOnASpan()
           
UnitOnASpan(SpanUnit unit, StakeStatus status, java.lang.String comment)
           
 
Method Summary
 void clearGuid()
           
 java.lang.Object clone()
           
 int compareTo(java.lang.Object nother)
           
 boolean getAddSpanLength()
          Add span length to footage?
 java.lang.String getComment()
          A text field for any addition information.
 int getFootage()
          Footage needed.
 java.lang.String getGuid()
           
 StakedUnitInfo getInfo()
           
 int getQuantity()
           
 StakeStatus getStatus()
          Existing, retired, or new.
 SpanUnit getUnit()
          The chosen unit.
 void setAddSpanLength(boolean newAddSpanLength)
          Add span length to footage?
 void setComment(java.lang.String newComment)
          A text field for any addition information.
 void setFootage(int newFootage)
          Footage needed.
 void setGuid(java.lang.String newGuid)
           
 void setInfo(StakedUnitInfo newInfo)
           
 void setQuantity(int newQuantity)
           
 void setStatus(StakeStatus newStatus)
          Existing, retired, or new.
 void setUnit(SpanUnit unit)
          The chosen unit.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnitOnASpan

public UnitOnASpan()

UnitOnASpan

public UnitOnASpan(SpanUnit unit,
                   StakeStatus status,
                   java.lang.String comment)
Method Detail

setGuid

public void setGuid(java.lang.String newGuid)

getGuid

public java.lang.String getGuid()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUnit

public SpanUnit getUnit()
The chosen unit.


setUnit

public void setUnit(SpanUnit unit)
The chosen unit.


getStatus

public StakeStatus getStatus()
Existing, retired, or new.


setStatus

public void setStatus(StakeStatus newStatus)
Existing, retired, or new.


getComment

public java.lang.String getComment()
A text field for any addition information. If the unit chosen is an "other" type, describe or name it here.


setComment

public void setComment(java.lang.String newComment)
A text field for any addition information. If the unit chosen is an "other" type, describe or name it here.


getFootage

public int getFootage()
Footage needed.


setFootage

public void setFootage(int newFootage)
Footage needed.


getAddSpanLength

public boolean getAddSpanLength()
Add span length to footage?


setAddSpanLength

public void setAddSpanLength(boolean newAddSpanLength)
Add span length to footage?


getQuantity

public int getQuantity()

setQuantity

public void setQuantity(int newQuantity)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(java.lang.Object nother)
Specified by:
compareTo in interface java.lang.Comparable

getInfo

public StakedUnitInfo getInfo()

setInfo

public void setInfo(StakedUnitInfo newInfo)

clearGuid

public void clearGuid()