BinPacker.Objective behaviour (bin_packer v0.1.0) View Source

Link to this section Summary

Link to this section Types

Specs

cost() :: number()

Specs

init_args() :: any()

Specs

proposition() :: BinPacker.proposition()

Specs

state() :: any()

Link to this section Functions

Link to this function

ball_added(bin_packer, ball)

View Source
Link to this function

bin_added(bin_packer, bin)

View Source
Link to this function

initialize(bin_packer, objectives)

View Source
Link to this function

proposition_executed(bin_packer, proposition)

View Source

Link to this section Callbacks

Link to this callback

ball_added(arg1, arg2, state)

View Source

Specs

ball_added(BinPacker.t(), BinPacker.Ball.t(), state()) :: state()
Link to this callback

bin_added(arg1, arg2, state)

View Source

Specs

bin_added(BinPacker.t(), Bin.t(), state()) :: state()

Specs

cost(BinPacker.t(), state()) :: cost()

Specs

init(init_args()) :: state()
Link to this callback

proposition_executed(arg1, proposition, state)

View Source

Specs

proposition_executed(BinPacker.t(), proposition(), state()) :: state()