final public class UTILCargoCategoryDecoder (Code)
Static class to extract some information out
of the cargo category codes.
Cargo category codes are 3 letter codes that define
how a piece of cargo can be transported from point A
to point B.
See if the cargo fits on a C5 or a C17 Plane.
There is a limit to outsize a C17 can carry. This info
can not be deduced from the cargo category code and must
be found using the length and width info. in ContainCapability.java.
Parameters: code - - 3 letter cargo category code boolean
See if the cargo can go by ship. For
the 1998 demo we will assume that anything
can go by ship.
Parameters: code - - 3 letter cargo category code boolean
Is20FtContainarizable
public boolean Is20FtContainarizable(String code)(Code)
Cargo can be put in a 20 ft container
Parameters: code - - 3 letter cargo category code boolean
Is40FtContainarizable
public boolean Is40FtContainarizable(String code)(Code)
Cargo can be put in a 20 ft container
Parameters: code - - 3 letter cargo category code boolean
See if some cargo can be transported by train
For the 1998 demo we assume that all vehicles are
trainable.
Parameters: code - - 3 letter cargo category code boolean