com.partnersoft.job.model
Class JobUnit

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

public class JobUnit
extends JobDataComponent

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
JobUnit()
           
 
Method Summary
 void generateID()
          Subclass homework.
 int getQuantity()
          Gets the value of quantity
 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
 void remove()
          Does nothing.
 void setQuantity(int argQuantity)
          Sets the value of quantity
 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

JobUnit

public JobUnit()
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

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