![]() |
Synthia
Generic and flexible data structure generator
|
A picker producing instances of visitors.
Definition at line 32 of file VisitorPicker.java.

Classes | |
| class | LogLinePicker |
| Picker that produces log lines. | |
Public Member Functions | |
| VisitorPicker (Picker< Long > timestamp, Picker< String > ip, MarkovChain< String > map) | |
| Picker< LogLine > | pick () |
| Picks an object. More... | |
| Picker< Picker< LogLine > > | duplicate (boolean with_state) |
| Creates a copy of the picker. More... | |
| void | reset () |
| Puts the picker back into its initial state. More... | |
Protected Attributes | |
| Picker< Float > | m_floatSource |
| Picker< String > | m_ip |
| MarkovChain< String > | m_map |
| Picker< Long > | m_timestamp |
| examples.apache.VisitorPicker.VisitorPicker | ( | Picker< Long > | timestamp, |
| Picker< String > | ip, | ||
| MarkovChain< String > | map | ||
| ) |
Definition at line 42 of file VisitorPicker.java.
Creates a copy of the picker.
| with_state | If set to false, the returned copy is set to the class' initial state (i.e. same thing as calling the picker's constructor). If set to true, the returned copy is put into the same internal state as the object it is copied from. |
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 58 of file VisitorPicker.java.
Picks an object.
Typically, this method is expected to return non-null objects; a null return value is used to signal that no more objects will be produced. That is, once this method returns null, it should normally return null on all subsequent calls.
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 51 of file VisitorPicker.java.
| void examples.apache.VisitorPicker.reset | ( | ) |
Puts the picker back into its initial state.
This means that the sequence of calls to pick() will produce the same values as when the object was instantiated.
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 65 of file VisitorPicker.java.
|
protected |
Definition at line 34 of file VisitorPicker.java.
|
protected |
Definition at line 36 of file VisitorPicker.java.
|
protected |
Definition at line 38 of file VisitorPicker.java.
|
protected |
Definition at line 40 of file VisitorPicker.java.