jcaas.midi
Class Instrument

java.lang.Object
  extended by jcaas.midi.Instrument

public class Instrument
extends java.lang.Object

Instrument represents the instrument a staff is played with.

Version:
created Apr 18, 2005 last modified Apr 18, 2005
Author:
Conrad M. Hutcheson

Constructor Summary
Instrument(int i)
          Standard Constructor
 
Method Summary
 int getInstrument()
          Returns the Instrument this object represents
 java.lang.String toString()
          Overwrite for the toString method, returns the string representation of this instrument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instrument

public Instrument(int i)
Standard Constructor

Parameters:
i - the instrument this object represents.
Method Detail

getInstrument

public int getInstrument()
Returns the Instrument this object represents

Returns:
the integer instrument

toString

public java.lang.String toString()
Overwrite for the toString method, returns the string representation of this instrument.

Overrides:
toString in class java.lang.Object