|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.supplychain.product.Unit
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.
| 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 |
public static final Unit PIECE
public static final Unit PALLET
public static final Unit BOX
public static final Unit CONTAINER20FT
public static final Unit CONTAINER40FT
public static final Unit M3
public static final Unit KG
protected java.lang.String name
| Constructor Detail |
public Unit(java.lang.String name)
name - the name of the unit for printing purposes.| Method Detail |
public java.lang.String toString()
Object.toString()public java.lang.String getName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||