edu.cmu.etc.jamodrum
Class DiskInputData

java.lang.Object
  |
  +--edu.cmu.etc.jamodrum.DiskInputData

public class DiskInputData
extends java.lang.Object

Any DiskListener that is registered with the Input object receives an instance of this class via its DiskListener.diskTurn(DiskInputData inData) method.

Title: Jam-O-Drum Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
Entertainment Technology Center

Field Summary
(package private)  boolean mTurningClockwise
           
(package private)  short mWhichDisk
           
 
Constructor Summary
DiskInputData(short inDisk, boolean inClockwise)
          This constructor is called by the Input object when passing an event to its listeners.
 
Method Summary
 short getDiskIndex()
           
 boolean isTurningClockwise()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mWhichDisk

short mWhichDisk

mTurningClockwise

boolean mTurningClockwise
Constructor Detail

DiskInputData

public DiskInputData(short inDisk,
                     boolean inClockwise)
This constructor is called by the Input object when passing an event to its listeners. There should be no need to create objects of this type.
Method Detail

getDiskIndex

public short getDiskIndex()
Returns:
The index of the disk which is being turned. The index is 1-based.

isTurningClockwise

public boolean isTurningClockwise()
Returns:
true if the disk is being turned clockwise, false if it is being turned counterclockwise.