I think that what you are looking for is the Strategy Pattern.
This can be implemented in a number of ways, which have been mentionned in other answers to this question, such as:
- A map of values -> functions
- Polymorphism. (the sub-type of an object will decide how it handles a specific process).
- First class functions.