Previous  Next          Package

Interface MIDICompose.Amountable

public interface Amountable

All instances that are Amountable have a value that can be read or set by the Amountable-methods. The minimal, maximal and zero (=no effect) value of that amount can also be read. To handle an Amountable instance in Lengthable instances, Amountables objects must be able to copy themselves and to set and return their deltaTimes.

Method Index

 o amount()
Returns current amount.
 o setAmount(int)
Sets amount.
 o minAmount()
Returns minimal amount value.
 o maxAmount()
Returns maximal amount value.
 o zeroAmount()
Returns zero (=no effect) amount value.
 o deltaTime()
Returns current deltaTime.
 o setDeltaTime(int)
Sets deltaTime.
 o copy()
Returns copy of itself.

Methods

 o amount
 public abstract int amount()
Returns the current amount value.

Returns:
any int between minAmount() and maxAmount().
 o setAmount
 public abstract void setAmount(int amount)
Sets amount value.

Parameters:
amount - any int between minAmount() and maxAmount().
 o minAmount
 public abstract int minAmount()
Returns the minimal amount value.

Returns:
any int.
 o maxAmount
 public abstract int maxAmount()
Returns the maximal amount value.

Returns:
any int.
 o zeroAmount
 public abstract int zeroAmount()
Returns the zero (=no effect) amount value.

Returns:
any int between minAmount() and maxAmount().
 o deltaTime
 public abstract int deltaTime()
Returns the current deltaTime.

Returns:
an int (>= 0) for this objects deltaTime.
 o setDeltaTime
 public abstract void setDeltaTime(int deltaTime)
Sets this objects deltaTime.

Parameters:
deltaTime - any int (>= 0).
 o copy
 public abstract MIDIObject copy()
Returns a copy of itself.

Returns:
an instance of its own class.

 Previous  Next          Package