Individual classes should manage all behaviour on Operation::create(), so that they add themselves to the context and make all changes to the local contextual objects so that the robot sees the updated state. This encapsulation reduces replication and thus eliminates a lot of possible mistakes.
Individual classes should manage all behaviour on Operation::create(), so that they add themselves to the context and make all changes to the local contextual objects so that the robot sees the updated state. This encapsulation reduces replication and thus eliminates a lot of possible mistakes.