Package oo

A package containing three successively more object-oriented implementations of mattresses, their orientations, and their flips. 

See:
          Description

Interface Summary
HasHLT Something that has a red end at the head or foot, a blue side at the left or right, and a green surface at the top or bottom.
PRYable Something that can pitch, roll, and yaw.
 

Class Summary
Command Command-line test and demonstration class for oo package.
Flip A flip (a pitch, roll, yaw, or null flip having no effect) used by Mattress3's implementation.
FlipNULL Package-private singleton class for the null flip that has no effect when applied to an orientation.
FlipPITCH Package-private singleton class for a pitch.
FlipROLL Package-private singleton class for a roll.
FlipYAW Package-private singleton class for a yaw.
Mattress1 A mattress and its orientations;  the mattress's state (its orientation) is implemented with three booleans.
Mattress2 A mattress and its orientations;  state implemented as a single object of an inner class.
Mattress3 A mattress and its orientations;  state implemented as a single object of an inner class.
Orientation An orientation of a mattress.
OrientationFLB Singleton class for the FLB orientation.
OrientationFRT Singleton class for the FRT orientation.
OrientationHLT Singleton class for the HLT orientation.
OrientationHRB Singleton class for the HRB orientation.
 

Package oo Description

A package containing three successively more object-oriented implementations of mattresses, their orientations, and their flips.