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(Criteria *criteria, System *system, TrialFactory *trial_factory)

Initialize and precompute before trials.

void write_to_file(Criteria *criteria, System *system, TrialFactory *trial_factory)

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(Criteria *criteria, System *system, Random *random, TrialFactory *trial_factory)

Check every trial if action is to be performed.