From d746b62308fb966638ef3f2a8f147891835f41bb Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 9 Aug 2014 00:33:58 +0200 Subject: [PATCH] add method to get current IntermediateAgent from ToplevelAgent() --- agents/ToplevelAgent.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/agents/ToplevelAgent.inc b/agents/ToplevelAgent.inc index c545975a..9d6d6f8a 100644 --- a/agents/ToplevelAgent.inc +++ b/agents/ToplevelAgent.inc @@ -153,6 +153,17 @@ } + /** + * Return the IntermediateAgent. + * + * @return IntermediateAgent IntermediateAgent + */ + public function getIntermediateAgent() + { + return $this->intermediateAgent; + } + + /** @@ -265,6 +276,7 @@ /** * Run the Controller of this Agent and its SubAgents. * + * @throws AccessDeniedException * @throws IdNotFoundException * @throws ServiceUnavailableException * @throws DatamodelException @@ -292,6 +304,7 @@ /** * Run IntermediateAgent. * + * @throws AccessDeniedException * @throws ParamsNotValidException * @throws IdNotFoundException * @throws ServiceUnavailableException