public class LongSignalSourceFraction extends Object
Modifier and Type | Field and Description |
---|---|
protected LongSignalSource |
denominator |
protected LongSignalSource |
numerator |
Constructor and Description |
---|
LongSignalSourceFraction(LongSignalSource numerator,
LongSignalSource denominator) |
Modifier and Type | Method and Description |
---|---|
LongSignalSourceFraction |
add(LongSignalSourceFraction other) |
LongClockedSignalSourceFraction |
canceled() |
static LongSignalSourceFraction |
constant(long value) |
static LongSignalSourceFraction |
constant(long numerator,
long denominator) |
LongSignalSourceFraction |
divide(LongSignalSourceFraction other) |
Optional<LongFraction> |
getConstant() |
LongSignalSource |
getDenominator() |
LongSignalSource |
getNumerator() |
boolean |
hasConstant() |
LongSignalSourceFraction |
multiply(LongSignalSourceFraction other) |
LongSignalSourceFraction |
negate() |
LongSignalSourceFraction |
reciprocal() |
LongClockedSignalSourceFraction |
stored() |
LongSignalSourceFraction |
subtract(LongSignalSourceFraction other) |
String |
toString() |
protected final LongSignalSource numerator
protected final LongSignalSource denominator
public LongSignalSourceFraction(LongSignalSource numerator, LongSignalSource denominator)
public LongSignalSource getNumerator()
public LongSignalSource getDenominator()
public Optional<LongFraction> getConstant()
public boolean hasConstant()
public static LongSignalSourceFraction constant(long value)
public static LongSignalSourceFraction constant(long numerator, long denominator)
public LongSignalSourceFraction add(LongSignalSourceFraction other)
public LongSignalSourceFraction subtract(LongSignalSourceFraction other)
public LongSignalSourceFraction multiply(LongSignalSourceFraction other)
public LongSignalSourceFraction divide(LongSignalSourceFraction other)
public LongSignalSourceFraction negate()
public LongSignalSourceFraction reciprocal()
public LongClockedSignalSourceFraction stored()
public LongClockedSignalSourceFraction canceled()