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.
-
amount()
- Returns current amount.
-
setAmount(int)
- Sets amount.
-
minAmount()
- Returns minimal amount value.
-
maxAmount()
- Returns maximal amount value.
-
zeroAmount()
- Returns zero (=no effect) amount value.
-
deltaTime()
- Returns current deltaTime.
-
setDeltaTime(int)
- Sets deltaTime.
-
copy()
- Returns copy of itself.
amount
public abstract int amount()
- Returns the current amount value.
- Returns:
- any int between minAmount() and maxAmount().
setAmount
public abstract void setAmount(int amount)
- Sets amount value.
- Parameters:
- amount - any int between minAmount() and maxAmount().
minAmount
public abstract int minAmount()
- Returns the minimal amount value.
- Returns:
- any int.
maxAmount
public abstract int maxAmount()
- Returns the maximal amount value.
- Returns:
- any int.
zeroAmount
public abstract int zeroAmount()
- Returns the zero (=no effect) amount value.
- Returns:
- any int between minAmount() and maxAmount().
deltaTime
public abstract int deltaTime()
- Returns the current deltaTime.
- Returns:
- an int (>= 0) for this objects deltaTime.
setDeltaTime
public abstract void setDeltaTime(int deltaTime)
- Sets this objects deltaTime.
- Parameters:
- deltaTime - any int (>= 0).
copy
public abstract MIDIObject copy()
- Returns a copy of itself.
- Returns:
- an instance of its own class.
Previous Next Package