public void registerShanksAgent ( ShanksAgent agent ) throws ShanksException { if ( ! this . agents . containsKey ( agent . getID ( ) ) ) { this . agents . put ( agent . getID ( ) , agent ) ; } else { throw new DuplicatedAgentIDException ( agent . getID ( ) ) ; } }
This method adds and registers the ShanksAgent