public class LicasConfig
extends java.lang.Object
Constructor and Description |
---|
LicasConfig()
Create a new instance of LicasConfig
|
Modifier and Type | Method and Description |
---|---|
void |
addInfo(java.lang.String serviceFunction,
org.ai_heuristic.model.FactoryInfo factoryInfo)
Add a new class name for the specified service type and function.
|
void |
addModuleInfo(ModuleInfo moduleInfo)
Add a new module reference to the modules list.
|
void |
addServiceInfo(ServiceModuleInfo serviceInfo)
Add a new service info object for the specified service type.
|
static java.lang.String |
checkClassName(java.lang.String className)
For backwards compatibility, need to convert some service class names.
|
boolean |
containsServiceType(java.lang.String serviceFunction,
java.lang.String serviceType)
Return true if the service type is included.
|
java.util.HashMap<java.lang.String,org.ai_heuristic.model.FactoryInfo> |
getAllInfo(java.lang.String serviceFunction)
Get the list of interface info objects for the stored service types and
the specified function.
|
java.util.ArrayList<java.lang.String> |
getAllInfoFunctions()
Get the list of interface functions that classes are saved for.
|
java.util.ArrayList<java.lang.String> |
getAllJarFiles()
Get all jar files, either listed with a service or function, or stored in
either the services or the modules folders.
|
java.util.HashMap<java.lang.String,ServiceModuleInfo> |
getAllServiceInfo()
Get the list of all default services that can be loaded from this module.
|
JarFactoryInfo |
getDefaultJarFactory()
Get the default jar factory info.
|
ServiceFactoryInfo |
getDefaultServiceFactory()
Get the default service factory info.
|
boolean |
getExternalJars()
Get the value indicating if allow external class-loaders.
|
int |
getHorizGapFactor()
Get the horizontal gap factor for the network graphic.
|
org.ai_heuristic.model.FactoryInfo |
getInfo(java.lang.String serviceFunction,
java.lang.String serviceType)
Get the info for the specified service type.
|
int |
getMaxNetworkDepth()
Get the maximum depth that nodes are drawn to.
|
int |
getMaxNodes()
Get the maximum number of nodes to draw on the graphic.
|
ModuleInfo |
getModuleInfo(java.lang.String moduleName)
Get the full details to the referenced module jar file and dependencies.
|
java.util.ArrayList<java.lang.String> |
getModuleKeys()
Get the list of all module keys.
|
int |
getRedrawDelay()
Get the delay time before automatically re-drawing the network graphic.
|
boolean |
getScientific()
Get the value indicating to show the scientific panels.
|
ServerConfig |
getServerConfig()
Get the server config details.
|
ServiceModuleInfo |
getServiceInfo(java.lang.String serviceType)
Get the info for the specified service type.
|
int |
getTimeout()
Get the time allowed for remote method calls, in milliseconds.
|
int |
getVertGapFactor()
Get the vertical gap factor for the network graphic.
|
boolean |
moduleReferenced(java.lang.String moduleName)
Return if the module name with jar postfix is already referenced.
|
void |
removeInfo(java.lang.String serviceFunction,
org.ai_heuristic.model.FactoryInfo factoryInfo)
Remove class info for the specified service type and function.
|
java.util.ArrayList<java.lang.String> |
removeModuleInfo(java.lang.String moduleName)
Remove the module from the list.
|
void |
removeServiceInfo(java.lang.String serviceType)
Get the info for the specified service type.
|
boolean |
serviceHasGui(java.lang.String serviceFunction,
java.lang.String serviceType)
Return if the service type already has an associated class for the specified
function.
|
void |
setExternalJars(boolean theExtJars)
Set the allow external class-loaders option.
|
void |
setHorizGapFactor(int theHorizGapFactor)
Set the horizontal gap factor for the graphic.
|
void |
setMaxNetworkDepth(int theMaxNetworkDepth)
Set the maximum depth that nodes are drawn to.
|
void |
setMaxNodes(int theMaxNodes)
Set the maximum number of nodes to draw on the graphic.
|
void |
setRedrawDelay(int theRedrawDelay)
Set the delay time before automatically re-drawing the graphic.
|
void |
setScientific(boolean theScientific)
Set the show scientific panels option.
|
void |
setServerConfig(ServerConfig theServerConfig)
Set the server config details.
|
void |
setTimeout(int theTimeout)
Set the time allowed for remote method calls in milliseconds.
|
void |
setVertGapFactor(int theVertGapFactor)
Set the vertical gap factor for the graphic.
|
public boolean containsServiceType(java.lang.String serviceFunction, java.lang.String serviceType)
serviceFunction
- the function of the class.serviceType
- the service type to check.public boolean serviceHasGui(java.lang.String serviceFunction, java.lang.String serviceType)
serviceFunction
- the function to check for.serviceType
- the type of service to check for.public void setExternalJars(boolean theExtJars)
theExtJars
- true if allow external jar loaders.public boolean getExternalJars()
public void setScientific(boolean theScientific)
theScientific
- true if show scientific panels.public boolean getScientific()
public void setTimeout(int theTimeout)
theTimeout
- the timeout value.public int getTimeout()
public void setHorizGapFactor(int theHorizGapFactor)
theHorizGapFactor
- the horizontal gap factor.public int getHorizGapFactor()
public void setVertGapFactor(int theVertGapFactor)
theVertGapFactor
- the vertical gap factor.public int getVertGapFactor()
public void setMaxNetworkDepth(int theMaxNetworkDepth)
theMaxNetworkDepth
- the maximum network depth.public int getMaxNetworkDepth()
public void setMaxNodes(int theMaxNodes)
theMaxNodes
- the maximum number of nodes to draw.public int getMaxNodes()
public void setRedrawDelay(int theRedrawDelay)
theRedrawDelay
- the re-draw delay time, in seconds.public int getRedrawDelay()
public void setServerConfig(ServerConfig theServerConfig)
theServerConfig
- the server config details.public ServerConfig getServerConfig()
public ServiceFactoryInfo getDefaultServiceFactory()
public JarFactoryInfo getDefaultJarFactory()
public boolean moduleReferenced(java.lang.String moduleName)
moduleName
- the module name only, not the full jar file path.public java.util.ArrayList<java.lang.String> getAllJarFiles() throws java.lang.Exception
java.lang.Exception
- any error.public java.util.ArrayList<java.lang.String> getModuleKeys()
public void addModuleInfo(ModuleInfo moduleInfo)
moduleInfo
- the module info object.public ModuleInfo getModuleInfo(java.lang.String moduleName)
Services
folder location and
a temporary ModuleInfo
can be created to return the information.moduleName
- the module name only, not the full jar file path.public java.util.ArrayList<java.lang.String> removeModuleInfo(java.lang.String moduleName)
moduleName
- the module name only, not the full jar file path.public void addServiceInfo(ServiceModuleInfo serviceInfo)
serviceInfo
- the service module info.public void removeServiceInfo(java.lang.String serviceType)
serviceType
- the service type.public ServiceModuleInfo getServiceInfo(java.lang.String serviceType)
serviceType
- the service type.public java.util.HashMap<java.lang.String,ServiceModuleInfo> getAllServiceInfo()
public void addInfo(java.lang.String serviceFunction, org.ai_heuristic.model.FactoryInfo factoryInfo)
serviceFunction
- the function of the service.factoryInfo
- the interface info.public void removeInfo(java.lang.String serviceFunction, org.ai_heuristic.model.FactoryInfo factoryInfo)
serviceFunction
- the function of the service.factoryInfo
- the interface info.public org.ai_heuristic.model.FactoryInfo getInfo(java.lang.String serviceFunction, java.lang.String serviceType)
serviceFunction
- the function of the service.serviceType
- the service type.public java.util.ArrayList<java.lang.String> getAllInfoFunctions()
public java.util.HashMap<java.lang.String,org.ai_heuristic.model.FactoryInfo> getAllInfo(java.lang.String serviceFunction)
serviceFunction
- the function of the service.public static java.lang.String checkClassName(java.lang.String className)
className
- the class name to check.