public class ClassLoadServiceUtility extends BaseClassLoadServiceUtility
Constructor and Description |
---|
ClassLoadServiceUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends jade.core.Agent> |
getAgentClass(java.lang.String agentClassName)
Returns the agent class from the specified agent class name.
|
static ClassLoadService |
getClassLoadService(java.lang.String className)
Returns the class load service that provides the actual implementations.
|
static DynamicLoadBalancingBase |
getDynamicLoadBalancing(java.lang.String balancingClassName,
jade.core.Agent executingAgent)
Returns an instance of a dynamic load balancing to use by the specified agent.
|
static PlugIn |
getPlugInInstance(java.lang.String pluginClassName,
Project project)
Returns the
PlugIn instance for the specified class name. |
static StaticLoadBalancingBase |
getStaticLoadBalancing(java.lang.String balancingClassName,
jade.core.Agent executingAgent)
Returns an instance of a static load balancing to use by the specified agent.
|
static TimeModel |
getTimeModelInstance(java.lang.String className)
Returns a time model instance from the specified class name.
|
forName, getBaseClassLoadService, getOntologyInstance, newInstance
public static ClassLoadService getClassLoadService(java.lang.String className)
className
- the class namepublic static java.lang.Class<? extends jade.core.Agent> getAgentClass(java.lang.String agentClassName) throws java.lang.NoClassDefFoundError, java.lang.ClassNotFoundException
agentClassName
- the agent class namejava.lang.NoClassDefFoundError
- the no class definition found errorjava.lang.ClassNotFoundException
- the class not found exceptionpublic static TimeModel getTimeModelInstance(java.lang.String className) throws java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.SecurityException
className
- the class namejava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.SecurityException
- the security exceptionpublic static PlugIn getPlugInInstance(java.lang.String pluginClassName, Project project) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
PlugIn
instance for the specified class name.pluginClassName
- the PlugIn
class nameproject
- the projectjava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.SecurityException
- the security exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exceptionpublic static StaticLoadBalancingBase getStaticLoadBalancing(java.lang.String balancingClassName, jade.core.Agent executingAgent) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
balancingClassName
- the balancing class nameexecutingAgent
- the executing agentjava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.SecurityException
- the security exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exceptionpublic static DynamicLoadBalancingBase getDynamicLoadBalancing(java.lang.String balancingClassName, jade.core.Agent executingAgent) throws java.lang.ClassNotFoundException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
balancingClassName
- the balancing class nameexecutingAgent
- the executing agentjava.lang.ClassNotFoundException
- the class not found exceptionjava.lang.SecurityException
- the security exceptionjava.lang.NoSuchMethodException
- the no such method exceptionjava.lang.IllegalArgumentException
- the illegal argument exceptionjava.lang.InstantiationException
- the instantiation exceptionjava.lang.IllegalAccessException
- the illegal access exceptionjava.lang.reflect.InvocationTargetException
- the invocation target exception