com.partnersoft.job.model
Class LocationUnit

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

public class LocationUnit
extends JobDataComponent

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
LocationUnit()
           
 
Method Summary
 void generateID()
          Subclass homework.
 Alternative getAlternative()
           
 Chain getChain()
           
 Job getJob()
           
 Location getLocation()
           
 int getOffsetX()
          Gets the value of offsetX
 int getOffsetY()
          Gets the value of offsetY
 int getQuantity()
          Gets the value of quantity
 double getRotation()
          Gets the value of rotation
 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 isHide()
          Gets the value of hide
 void remove()
          Does nothing.
 void setHide(boolean argHide)
          Sets the value of hide
 void setLocation(Location newLocation)
           
 void setOffsetX(int argOffsetX)
          Sets the value of offsetX
 void setOffsetY(int argOffsetY)
          Sets the value of offsetY
 void setQuantity(int argQuantity)
          Sets the value of quantity
 void setRotation(double argRotation)
          Sets the value of rotation
 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

LocationUnit

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

getLocation

public Location getLocation()

setLocation

public void setLocation(Location newLocation)

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

getOffsetX

public int getOffsetX()
Gets the value of offsetX

Returns:
the value of offsetX

setOffsetX

public void setOffsetX(int argOffsetX)
Sets the value of offsetX

Parameters:
argOffsetX - Value to assign to this.offsetX

getOffsetY

public int getOffsetY()
Gets the value of offsetY

Returns:
the value of offsetY

setOffsetY

public void setOffsetY(int argOffsetY)
Sets the value of offsetY

Parameters:
argOffsetY - Value to assign to this.offsetY

getRotation

public double getRotation()
Gets the value of rotation

Returns:
the value of rotation

setRotation

public void setRotation(double argRotation)
Sets the value of rotation

Parameters:
argRotation - Value to assign to this.rotation

isHide

public boolean isHide()
Gets the value of hide

Returns:
the value of hide

setHide

public void setHide(boolean argHide)
Sets the value of hide

Parameters:
argHide - Value to assign to this.hide