Package uk.ac.qmul.eecs.depic.daw
Class AutomationValue
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.daw.AutomationValue
-
- All Implemented Interfaces:
- java.lang.Comparable<AutomationValue>, Sequence.Value
public abstract class AutomationValue extends java.lang.Object implements java.lang.Comparable<AutomationValue>, Sequence.Value
This class represent a value in an Automation. An automation is a set of line envelopes and a value represent one end of an automation line. Therefore an automation value normally points to where the automation changes its slope. Since an automation is a 2D graph
-
-
Constructor Summary
Constructors Constructor and Description AutomationValue(float position, float value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description int
compareTo(AutomationValue v)
abstract Automation
getAutomation()
Returns the enclosing Automation.float
getTimePosition()
Returns the position of this automation value in milliseconds The position represents where this value is on timefloat
getValue()
void
setLocation(float position, float value)
void
setTimePosition(float position)
void
setValue(float value)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface uk.ac.qmul.eecs.depic.patterns.Sequence.Value
getSequence, index
-
-
-
-
Method Detail
-
setTimePosition
public void setTimePosition(float position)
-
getTimePosition
public float getTimePosition()
Returns the position of this automation value in milliseconds The position represents where this value is on time- Specified by:
getTimePosition
in interfaceSequence.Value
- Returns:
- the position of this automation value in milliseconds
-
getValue
public float getValue()
- Specified by:
getValue
in interfaceSequence.Value
-
setValue
public void setValue(float value)
-
setLocation
public void setLocation(float position, float value)
-
getAutomation
public abstract Automation getAutomation()
Returns the enclosing Automation.- Returns:
- the enclosing Automation.
-
compareTo
public int compareTo(AutomationValue v)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AutomationValue>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-