Synthia
Generic and flexible data structure generator
ca.uqac.lif.synthia.util.Offset Class Reference

Detailed Description

Takes the numerical value of a picker, and offsets it by an amount determined by another picker.

Definition at line 28 of file Offset.java.

Inheritance diagram for ca.uqac.lif.synthia.util.Offset:

Public Member Functions

 Offset (Picker<? extends Number > picker, Picker<? extends Number > offset)
 Creates a new offset instance. More...
 
Float pick ()
 
Offset duplicate (boolean with_state)
 
- Public Member Functions inherited from ca.uqac.lif.synthia.util.Mutator< Number >
 Mutator (Picker<? extends T > picker)
 Creates a new instance of mutator. More...
 
Mutator< T > setPicker (Picker<? extends T > picker)
 Sets the picker producing the values to transform. More...
 
void reset ()
 Puts the picker back into its initial state. More...
 
PartNode getExplanation (Part p)
 
PartNode getExplanation (Part p, NodeFactory f)
 

Protected Attributes

Picker<? extends Number > m_offset
 The picker determining the offset of each value. More...
 
- Protected Attributes inherited from ca.uqac.lif.synthia.util.Mutator< Number >
Picker<? extends T > m_picker
 The underlying picker producing the values to transform. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ca.uqac.lif.synthia.util.Mutator< Number >
PartNode getExplanationForOutput (int output_index, Part p, NodeFactory f)
 
void copyInto (Mutator< T > m, boolean with_state)
 

Constructor & Destructor Documentation

◆ Offset()

ca.uqac.lif.synthia.util.Offset.Offset ( Picker<? extends Number >  picker,
Picker<? extends Number >  offset 
)

Creates a new offset instance.

Parameters
pickerThe underlying picker producing the values to transform
offsetThe picker determining the offset of each output value

Definition at line 40 of file Offset.java.

Member Function Documentation

◆ duplicate()

Offset ca.uqac.lif.synthia.util.Offset.duplicate ( boolean  with_state)

Definition at line 55 of file Offset.java.

◆ pick()

Float ca.uqac.lif.synthia.util.Offset.pick ( )

Definition at line 47 of file Offset.java.

Member Data Documentation

◆ m_offset

Picker<? extends Number> ca.uqac.lif.synthia.util.Offset.m_offset
protected

The picker determining the offset of each value.

Definition at line 33 of file Offset.java.


The documentation for this class was generated from the following file: