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