ModifyFactory

class ModifyFactory : public feasst::Modify

Contains multiple Modify objects.

Public Functions

void add(std::shared_ptr<Modify> modify)

Add a Modify object.

void remove(const int index)

Remove a Modify.

int num() const

Return the number.

const std::vector<std::shared_ptr<Modify>> &modifiers() const

Return the Modify objects.

const Modify &modify(const int index) const

Return a Modify object by index.

void initialize(MonteCarlo *mc)

Initialize and precompute before trials.

void write_to_file(MonteCarlo *mc)

Write all Modify immediately.

void adjust_bounds(const bool adjusted_up, const std::vector<int> &states, ModifyFactory *analyze_factory)

For use with CollectionMatrixSplice, transfer multistate between threads.

void trial(MonteCarlo *mc)

Check every trial if action is to be performed.

void set_timer()

Set the timer.

const TimerRDTSC *const timer() const

Return timer.