com.partnersoft.job.model
Class SpanUnit

java.lang.Object
  extended by com.partnersoft.job.model.JobDataComponent
      extended by com.partnersoft.job.model.SpanUnit
All Implemented Interfaces:
Coggable

public class SpanUnit
extends JobDataComponent

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
SpanUnit()
           
 
Method Summary
 void generateID()
          Subclass homework.
 Alternative getAlternative()
           
 Chain getChain()
           
 int getFootage()
          Gets the value of footage
 Job getJob()
           
 int getQuantity()
          Gets the value of quantity
 Span getSpan()
           
 Cog getState()
          Subclasses extend this by calling super.getState() and then adding their own state to the result.
 java.lang.String getUnit()
          Gets the value of unit
 boolean isAddSpanLength()
          Gets the value of addSpanLength
 void remove()
          Does nothing.
 void setAddSpanLength(boolean argAddSpanLength)
          Sets the value of addSpanLength
 void setFootage(int argFootage)
          Sets the value of footage
 void setQuantity(int argQuantity)
          Sets the value of quantity
 void setSpan(Span newSpan)
           
 void setState(Cog state)
          Subclasses should extend this by calling super.setState() and then setting their own state from the input.
 void setUnit(java.lang.String argUnit)
          Sets the value of unit
 
Methods inherited from class com.partnersoft.job.model.JobDataComponent
copy, copyStateFrom, generateGuid, generateStandardIDs, getData, getGuid, getID, getName, getType, setData, setGuid, setID, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanUnit

public SpanUnit()
Method Detail

remove

public void remove()
Does nothing.

Specified by:
remove in class JobDataComponent

getState

public Cog getState()
Description copied from class: JobDataComponent
Subclasses extend this by calling super.getState() and then adding their own state to the result.

Specified by:
getState in interface Coggable
Overrides:
getState in class JobDataComponent

setState

public void setState(Cog state)
Description copied from class: JobDataComponent
Subclasses should extend this by calling super.setState() and then setting their own state from the input.

Specified by:
setState in interface Coggable
Overrides:
setState in class JobDataComponent

generateID

public void generateID()
Description copied from class: JobDataComponent
Subclass homework. Component should assign itself a unique integer ID (often more useful than a GUID for dealing with legacy systems or in reports and such). Generally this is by consulting an ID registry; the job actually serves this purpose for all its components.

Specified by:
generateID in class JobDataComponent

getJob

public Job getJob()

getAlternative

public Alternative getAlternative()

getChain

public Chain getChain()

getSpan

public Span getSpan()

setSpan

public void setSpan(Span newSpan)

getUnit

public java.lang.String getUnit()
Gets the value of unit

Returns:
the value of unit

setUnit

public void setUnit(java.lang.String argUnit)
Sets the value of unit

Parameters:
argUnit - Value to assign to this.unit

getQuantity

public int getQuantity()
Gets the value of quantity

Returns:
the value of quantity

setQuantity

public void setQuantity(int argQuantity)
Sets the value of quantity

Parameters:
argQuantity - Value to assign to this.quantity

getFootage

public int getFootage()
Gets the value of footage

Returns:
the value of footage

setFootage

public void setFootage(int argFootage)
Sets the value of footage

Parameters:
argFootage - Value to assign to this.footage

isAddSpanLength

public boolean isAddSpanLength()
Gets the value of addSpanLength

Returns:
the value of addSpanLength

setAddSpanLength

public void setAddSpanLength(boolean argAddSpanLength)
Sets the value of addSpanLength

Parameters:
argAddSpanLength - Value to assign to this.addSpanLength