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.
public static boolean AirTransportable(String code)(Code)
See if the cargo is air transportable.
Parameters: code - - 3 letter cargo category code boolean
FitsOnAnyPlane
public static boolean FitsOnAnyPlane(String code)(Code)
See if the cargo fits on any kind of US Military
cargo plane.
Parameters: code - - 3 letter cargo category code boolean
FitsOnC17orC141
public static boolean FitsOnC17orC141(String code)(Code)
See if the cargo fits on a C17 or C141 plane
Parameters: code - - 3 letter cargo category code boolean
FitsOnC5orC17
public static boolean FitsOnC5orC17(String code)(Code)
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
FitsOnShip
public static boolean FitsOnShip(String code)(Code)
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 static boolean Is20FtContainarizable(String code)(Code)
Cargo can be put in a 20 ft container
Parameters: code - - 3 letter cargo category code boolean
Is40FtContainarizable
public static boolean Is40FtContainarizable(String code)(Code)
Cargo can be put in a 20 ft container
Parameters: code - - 3 letter cargo category code boolean
IsRoadable
public static boolean IsRoadable(String code)(Code)
Can be transported down american roads, if not then
it must go by train.
Parameters: code - - 3 letter cargo category code boolean
IsSelfTransportable
public static boolean IsSelfTransportable(String code)(Code)
Roadable vehicles, may be hazardouz, may require security
Parameters: code - - 3 letter cargo category code boolean
IsTrainable
public static boolean IsTrainable(String code)(Code)
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