com.partnersoft.job.model
Class Alternative

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

public class Alternative
extends JobDataComponent

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
Alternative()
           
 
Method Summary
 void addChain(Chain chain)
           
 void generateID()
          Subclass homework.
 java.util.ArrayList getChains()
          Gets the value of chains
 Job getJob()
           
 Cog getState()
          Subclasses extend this by calling super.getState() and then adding their own state to the result.
 java.util.ArrayList getUnits()
          Gets the value of units
 void remove()
          Removes this alternative from its job.
 void remove(Chain chain)
           
 void setChains(java.util.ArrayList argChains)
          Sets the value of chains
 void setJob(Job newJob)
           
 void setState(Cog state)
          Subclasses should extend this by calling super.setState() and then setting their own state from the input.
 void setUnits(java.util.ArrayList argUnits)
          Sets the value of units
 
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

Alternative

public Alternative()
Method Detail

addChain

public void addChain(Chain chain)

remove

public void remove(Chain chain)

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

remove

public void remove()
Removes this alternative from its job.

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

getJob

public Job getJob()

setJob

public void setJob(Job newJob)

getChains

public java.util.ArrayList getChains()
Gets the value of chains

Returns:
the value of chains

setChains

public void setChains(java.util.ArrayList argChains)
Sets the value of chains

Parameters:
argChains - Value to assign to this.chains

getUnits

public java.util.ArrayList getUnits()
Gets the value of units

Returns:
the value of units

setUnits

public void setUnits(java.util.ArrayList argUnits)
Sets the value of units

Parameters:
argUnits - Value to assign to this.units