public UUID spawn ( UUID agentID , Class < ? extends Agent > agent , Object ... params ) { final List < UUID > ids = this . spawnService . spawn ( 1 , null , this . janusContext , agentID , agent , params ) ; if ( ids . isEmpty ( ) ) { return null ; } return ids . get ( 0 ) ; }
Spawn an agent of the given type and pass the parameters to its initialization function .