The evented and agent-oriented architecture