colrev.process.model.ProcessModel

class ProcessModel[source]

Bases: object

The ProcessModel describes transitions between RecordStates

Methods

check_operation_precondition

Check the preconditions for an operation

get_preceding_states

Get the states preceding the state that is given as a parameter

get_valid_transitions

Get the list of valid transitions

Attributes

transitions

classmethod check_operation_precondition(operation)[source]

Check the preconditions for an operation

Return type:

None

classmethod get_preceding_states(*, state)[source]

Get the states preceding the state that is given as a parameter

Return type:

set

classmethod get_valid_transitions(*, state)[source]

Get the list of valid transitions

Return type:

set