Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
F
H
L
M
N
O
P
R
S
T
Y
C
Command
- Class in
oo
Command-line test and demonstration class for oo package.
composedWith(FlipNULL)
- Method in class oo.
Flip
Package-private method composing this flip with a null flip.
composedWith(FlipPITCH)
- Method in class oo.
Flip
Package-private method composing this flip with a FlipPITCH.
composedWith(FlipROLL)
- Method in class oo.
Flip
Package-private method composing this flip with a FlipROLL.
composedWith(FlipYAW)
- Method in class oo.
Flip
Package-private method composing this flip with a FlipYAW.
composedWith(FlipNULL)
- Method in class oo.
FlipNULL
composedWith(FlipPITCH)
- Method in class oo.
FlipNULL
composedWith(FlipROLL)
- Method in class oo.
FlipNULL
composedWith(FlipYAW)
- Method in class oo.
FlipNULL
composedWith(FlipNULL)
- Method in class oo.
FlipPITCH
composedWith(FlipPITCH)
- Method in class oo.
FlipPITCH
composedWith(FlipROLL)
- Method in class oo.
FlipPITCH
composedWith(FlipYAW)
- Method in class oo.
FlipPITCH
composedWith(FlipNULL)
- Method in class oo.
FlipROLL
composedWith(FlipPITCH)
- Method in class oo.
FlipROLL
composedWith(FlipROLL)
- Method in class oo.
FlipROLL
composedWith(FlipYAW)
- Method in class oo.
FlipROLL
composedWith(FlipNULL)
- Method in class oo.
FlipYAW
composedWith(FlipPITCH)
- Method in class oo.
FlipYAW
composedWith(FlipROLL)
- Method in class oo.
FlipYAW
composedWith(FlipYAW)
- Method in class oo.
FlipYAW
composeWith(Flip)
- Method in class oo.
Flip
Composes this flip with _other, resulting in a flip.
composeWith(Flip)
- Method in class oo.
FlipNULL
composeWith(Flip)
- Method in class oo.
FlipPITCH
composeWith(Flip)
- Method in class oo.
FlipROLL
composeWith(Flip)
- Method in class oo.
FlipYAW
F
FLB
- Static variable in class oo.
Orientation
The singleton FLB orientation.
FLB()
- Method in class oo.
Orientation
The FLB orientation (foot, left, bottom).
Flip
- Class in
oo
A flip (a pitch, roll, yaw, or null flip having no effect) used by
Mattress3
's implementation.
Flip()
- Constructor for class oo.
Flip
Protected default constructor, can only be called by subclasses of Flip.
flip(Orientation)
- Method in class oo.
Flip
Applies this flip to an orientation, producing an orientation.
flip(Orientation)
- Method in class oo.
FlipNULL
flip(Orientation)
- Method in class oo.
FlipPITCH
flip(Orientation)
- Method in class oo.
FlipROLL
flip(Orientation)
- Method in class oo.
FlipYAW
FlipNULL
- Class in
oo
Package-private singleton class for the null flip that has no effect when applied to an orientation.
FlipNULL()
- Constructor for class oo.
FlipNULL
Package private constructor for null flip.
FlipPITCH
- Class in
oo
Package-private singleton class for a pitch.
FlipPITCH()
- Constructor for class oo.
FlipPITCH
Package private constructor for pitch.
FlipROLL
- Class in
oo
Package-private singleton class for a roll.
FlipROLL()
- Constructor for class oo.
FlipROLL
Package private constructor for roll.
FlipYAW
- Class in
oo
Package-private singleton class for a yaw.
FlipYAW()
- Constructor for class oo.
FlipYAW
Package private constructor for yaw.
FRT
- Static variable in class oo.
Orientation
The singleton FRT orientation.
FRT()
- Method in class oo.
Orientation
The FRT orientation (foot, right, top).
H
HasHLT
- Interface in
oo
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.
headRed()
- Method in interface oo.
HasHLT
True iff the red end is at the top.
headRed()
- Method in class oo.
Mattress1
headRed()
- Method in class oo.
Mattress2
headRed()
- Method in class oo.
Mattress3
headRed()
- Method in class oo.
Orientation
HLT
- Static variable in class oo.
Orientation
The singleton HLT orientation.
HLT()
- Method in class oo.
Orientation
The HLT orientation (head, left, top).
HRB
- Static variable in class oo.
Orientation
The singleton HRB orientation.
HRB()
- Method in class oo.
Orientation
The HRB orientation (head, right, bottom).
L
leftBlue()
- Method in interface oo.
HasHLT
True iff the blue side is at the left.
leftBlue()
- Method in class oo.
Mattress1
leftBlue()
- Method in class oo.
Mattress2
leftBlue()
- Method in class oo.
Mattress3
leftBlue()
- Method in class oo.
Orientation
M
main(String[])
- Static method in class oo.
Command
Main routine for test and demonstration.
Mattress1
- Class in
oo
A mattress and its orientations; the mattress's state (its orientation) is implemented with three booleans.
Mattress1()
- Constructor for class oo.
Mattress1
Constructs a mattress with red-end at top, blue-end at left, and green-surface at top.
Mattress2
- Class in
oo
A mattress and its orientations; state implemented as a single object of an inner class.
Mattress2()
- Constructor for class oo.
Mattress2
Constructs a mattress with red-end at top, blue-end at left, and green-surface at top.
Mattress3
- Class in
oo
A mattress and its orientations; state implemented as a single object of an inner class.
Mattress3()
- Constructor for class oo.
Mattress3
Constructs a mattress with red-end at top, blue-end at left, and green-surface at top.
N
NULL
- Static variable in class oo.
Flip
A
null flip
that does nothing to an orientation.
O
oo
- package oo
A package containing three successively more object-oriented implementations of mattresses, their orientations, and their flips.
orientation()
- Method in class oo.
Mattress2
The mattress's orientation.
orientation()
- Method in class oo.
Mattress3
The mattress's orientation.
Orientation
- Class in
oo
An orientation of a mattress.
Orientation(String)
- Constructor for class oo.
Orientation
Protected constructor for orientations.
OrientationFLB
- Class in
oo
Singleton class for the FLB orientation.
OrientationFRT
- Class in
oo
Singleton class for the FRT orientation.
OrientationHLT
- Class in
oo
Singleton class for the HLT orientation.
OrientationHRB
- Class in
oo
Singleton class for the HRB orientation.
P
PITCH
- Static variable in class oo.
Flip
A pitch through a half turn (180°)
pitch()
- Method in class oo.
Mattress1
pitch()
- Method in class oo.
Mattress2
pitch()
- Method in class oo.
Mattress3
pitch()
- Method in class oo.
Orientation
pitch()
- Method in class oo.
OrientationFLB
pitch()
- Method in class oo.
OrientationFRT
pitch()
- Method in class oo.
OrientationHLT
pitch()
- Method in class oo.
OrientationHRB
pitch()
- Method in interface oo.
PRYable
Pitches the thing a half-turn (180 degrees).
PRYable
- Interface in
oo
Something that can pitch, roll, and yaw.
R
ROLL
- Static variable in class oo.
Flip
A roll through a half turn (180°)
roll()
- Method in class oo.
Mattress1
roll()
- Method in class oo.
Mattress2
roll()
- Method in class oo.
Mattress3
roll()
- Method in class oo.
Orientation
roll()
- Method in class oo.
OrientationFLB
roll()
- Method in class oo.
OrientationFRT
roll()
- Method in class oo.
OrientationHLT
roll()
- Method in class oo.
OrientationHRB
roll()
- Method in interface oo.
PRYable
Rolls the thing a half-turn (180 degrees).
S
singleton
- Static variable in class oo.
OrientationFLB
Singleton object of this class.
singleton
- Static variable in class oo.
OrientationFRT
Singleton object of this class.
singleton
- Static variable in class oo.
OrientationHLT
Singleton object of this class.
singleton
- Static variable in class oo.
OrientationHRB
Singleton object of this class.
T
topGreen()
- Method in interface oo.
HasHLT
True iff the green surface is on the top.
topGreen()
- Method in class oo.
Mattress1
topGreen()
- Method in class oo.
Mattress2
topGreen()
- Method in class oo.
Mattress3
topGreen()
- Method in class oo.
Orientation
toString()
- Method in class oo.
Flip
The flip's name (
null
,
pitch
,
roll
, or
yaw
).
toString()
- Method in class oo.
FlipNULL
toString()
- Method in class oo.
FlipPITCH
toString()
- Method in class oo.
FlipROLL
toString()
- Method in class oo.
FlipYAW
toString()
- Method in interface oo.
HasHLT
A string representing the orientation, matching [HF][LR][TB]. The string contains H if headRed() and F otherwise; L if leftBlue() and R otherwise; and T if topGreen() and B otherwise.
toString()
- Method in class oo.
Mattress1
toString()
- Method in class oo.
Mattress2
toString()
- Method in class oo.
Mattress3
toString()
- Method in class oo.
Orientation
"HLT", "HRB", "FLB", or "FRT", whichever describes this orientation.
Y
YAW
- Static variable in class oo.
Flip
A yaw through a half turn (180°)
yaw()
- Method in class oo.
Mattress1
yaw()
- Method in class oo.
Mattress2
yaw()
- Method in class oo.
Mattress3
yaw()
- Method in class oo.
Orientation
yaw()
- Method in class oo.
OrientationFLB
yaw()
- Method in class oo.
OrientationFRT
yaw()
- Method in class oo.
OrientationHLT
yaw()
- Method in class oo.
OrientationHRB
yaw()
- Method in interface oo.
PRYable
Yaws the thing a half-turn (180 degrees).
C
F
H
L
M
N
O
P
R
S
T
Y
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes