nl.tudelft.simulation.supplychain.product
Class Unit

java.lang.Object
  extended bynl.tudelft.simulation.supplychain.product.Unit
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VolumeUnit, WeightUnit

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

Unit is a class that helps to define SKUs (Stock Keeping Units). At this moment, it just is a placeholder for a unit name, providing some standard static Unit types. We could provide extensions of this class allowing to calculate weight or volume of products, based on the density of the product. It could also provide some basic measures to translate the number of units from one Unit class to the other.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.3 $$ $$Date: 2005/04/08 12:00:57 $$
Author:
Alexander Verbraeck
See Also:
Serialized Form

Field Summary
static Unit BOX
          units without weight or volume : BOX
static Unit CONTAINER20FT
          units with volume : 20 FT CONTAINER
static Unit CONTAINER40FT
          units with volume : 40 FT CONTAINER
static Unit KG
          units with weight : KG
static Unit M3
          units with volume : M3 or cubic meter
protected  java.lang.String name
          the name of the unit for printing purposes
static Unit PALLET
          units without weight or volume : PALLET
static Unit PIECE
          units without weight or volume : PIECE
 
Constructor Summary
Unit(java.lang.String name)
          Constructor for Unit.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PIECE

public static final Unit PIECE
units without weight or volume : PIECE


PALLET

public static final Unit PALLET
units without weight or volume : PALLET


BOX

public static final Unit BOX
units without weight or volume : BOX


CONTAINER20FT

public static final Unit CONTAINER20FT
units with volume : 20 FT CONTAINER


CONTAINER40FT

public static final Unit CONTAINER40FT
units with volume : 40 FT CONTAINER


M3

public static final Unit M3
units with volume : M3 or cubic meter


KG

public static final Unit KG
units with weight : KG


name

protected java.lang.String name
the name of the unit for printing purposes

Constructor Detail

Unit

public Unit(java.lang.String name)
Constructor for Unit.

Parameters:
name - the name of the unit for printing purposes.
Method Detail

toString

public java.lang.String toString()
See Also:
Object.toString()

getName

public java.lang.String getName()
Returns:
Returns the name.


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.