public WrapperBehaviour(Behaviour wrapped) {
super(wrapped.myAgent);
wrappedBehaviour = wrapped;
// Set a dummy parent to the wrapped-behaviour to allow propagation of upward events and root calculations
// from the wrapped behaviour to this WrapperBehaviour
wrappedBehaviour.setParent(new CompositeBehaviour() {
// Redefine the handle() method to propagate events (note that these are always upwards events
// from the wrapped-behaviour) to this WrapperBehaviour
protected void handle(RunnableChangedEvent rce) {
WrapperBehaviour.this.handle(rce);
}