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

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.domain.Unit
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LocationUnit, SpanUnit

public class Unit
extends java.lang.Object
implements java.io.Serializable

This is one of the many inventoried item types that can be installed during construction. Each type of item has a name which is used to identify it both to the staking engineer and the accounting subsystem. Units can have a list of associated units which are generally installed at the same time; this is presented to the engineer to use or modify when the unit is placed. Examples include assemblies, transformers, lights, etc.

See Also:
Serialized Form

Constructor Summary
Unit()
          Create a new, empty Unit.
 
Method Summary
 java.lang.Object clone()
           
 void copyState(java.lang.Object nother)
           
 java.lang.String getAccountingCode()
          The weird accounting code for the unit.
 java.util.ArrayList getAssociatedUnits()
          These are units commonly installed with a principal unit such as an assembly.
 java.lang.String getCategory()
          This is a "real world" name for the unit's subclass; e.g.
 UnitCostEstimate getCostEstimate()
           
 java.lang.String getDescription()
          A description of the unit.
 ImageReference getDiagram()
          This is a diagram of the unit, for reference in the field.
 java.lang.String getDiagramName()
           
 java.lang.String getGISCode()
           
 java.util.Map getInfo()
           
 java.util.Map getInfoReal()
          The info fields for this unit.
 java.lang.String getName()
          A unique, identifying name for the unit.
 boolean getOmitFromStakingSheet()
          If true, unit does not appear on staking sheets.
 void setAccountingCode(java.lang.String newCode)
          The weird accounting code for the unit.
 void setAssociatedUnits(java.util.ArrayList newassociatedUnits)
          Set the associated units.
 void setCategory(java.lang.String newCategory)
          This is a "real world" name for the unit's subclass; e.g.
 void setDescription(java.lang.String newDescription)
          A description of the unit.
 void setDiagramName(java.lang.String newName)
           
 void setName(java.lang.String newname)
          A unique, identifying name for the unit.
 void setOmitFromStakingSheet(boolean tizit)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Unit

public Unit()
Create a new, empty Unit.

Method Detail

toString

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

getCostEstimate

public UnitCostEstimate getCostEstimate()

getCategory

public java.lang.String getCategory()
This is a "real world" name for the unit's subclass; e.g. Assembly, Transformer, Light, etc.


setCategory

public void setCategory(java.lang.String newCategory)
This is a "real world" name for the unit's subclass; e.g. Assembly, Transformer, Light, etc.


getName

public java.lang.String getName()
A unique, identifying name for the unit. E.g., "VA5" identifies a type of assembly.


setName

public void setName(java.lang.String newname)
A unique, identifying name for the unit. E.g., "VA5" identifies a type of assembly.


getDescription

public java.lang.String getDescription()
A description of the unit.


setDescription

public void setDescription(java.lang.String newDescription)
A description of the unit.


getAccountingCode

public java.lang.String getAccountingCode()
The weird accounting code for the unit.


setAccountingCode

public void setAccountingCode(java.lang.String newCode)
The weird accounting code for the unit.


getAssociatedUnits

public java.util.ArrayList getAssociatedUnits()
These are units commonly installed with a principal unit such as an assembly. They form a default set of additional equipment which may modified by the user when adding the unit.


setAssociatedUnits

public void setAssociatedUnits(java.util.ArrayList newassociatedUnits)
Set the associated units.


getDiagramName

public java.lang.String getDiagramName()

setDiagramName

public void setDiagramName(java.lang.String newName)

getDiagram

public ImageReference getDiagram()
This is a diagram of the unit, for reference in the field.


getInfo

public java.util.Map getInfo()

getInfoReal

public java.util.Map getInfoReal()
The info fields for this unit. May be null.


getGISCode

public java.lang.String getGISCode()

getOmitFromStakingSheet

public boolean getOmitFromStakingSheet()
If true, unit does not appear on staking sheets.


setOmitFromStakingSheet

public void setOmitFromStakingSheet(boolean tizit)

clone

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

copyState

public void copyState(java.lang.Object nother)