public abstract class ClusterLinkService
extends org.licas.service.sci.DataService
LinkService
or derived, to access the linking methods.Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
allData
Datasets from all available services.
|
protected java.util.ArrayList |
clusterURIs
List of service IDs/URIs that are clustered with this service.
|
protected org.ai_heuristic.functs.Function |
evalMetric
The evaluation metric
|
protected int |
numberOfIterations
Number of test run iterations, if specified
|
allDatasets, dataObj, dataType, mathCompare, mathOpMethod, rnd
Constructor and Description |
---|
ClusterLinkService()
Create a new instance of ClusterLinkService.
|
ClusterLinkService(java.lang.String thisPassword,
java.lang.String thisAdminKey)
Creates a new instance of ClusterLinkService.
|
ClusterLinkService(java.lang.String thisPassword,
java.lang.String thisAdminKey,
org.licas_xml.abs.Element adminXml)
Creates a new instance of ClusterLinkService.
|
Modifier and Type | Method and Description |
---|---|
protected int |
alreadyLinkedTo(java.lang.String linkTo)
Check for existing links to the selected service, as part of a cluster.
|
protected java.lang.String |
getMetricType()
Get the evaluation metric type, if initialised with the info in the admin
Meta element. |
protected boolean |
iterationsOK(int maxIterations)
Return true if the current iterations value is OK with respect to a maximum value.
|
void |
resetValues()
Reset variables for another test run.
|
createEvaluateData, evaluate, getData, getDataType, getInstanceValue, sendInfoXML, setData, setDataType, setGenData, setInstanceValues, setLocalDataset, setSerializeValues
addCommunicationID, addDefaultService, addDefaultService, addDefaultService, addDefaultService, addLinkFromService, addLinkToService, addMessageMetrics, addService, addService, addService, addService, addServiceAssociation, addServicePassword, addTempPassword, allowAddService, canAccess, canAccess, canAccess, canAccess, canAccess, canAccessMeta, canAccessNested, canAccessTemp, clearServices, clearServices, createMetaForRepos, createMetaFull, createPermanentLinkTo, createServiceWrapper, defaultAdminToRemove, dynamicLinksToPermanent, dynamicLinksToXml, dynamicLinksToXml, execute, finaliseInitialisation, finaliseInitialisation, finaliseThisConfig, finalize, GET, getAllLinkToService, getAllowAddService, getAutonomicManagerConfig, getDescription, getFullPath, getIsRemoteCall, getJarFile, getLinkFromService, getLinkToService, getLocalRemoteKey, getParent, getPassword, getPassword, getPassword, getPassword, getPublicMethods, getPublicServiceClassname, getServerPassword, getService, getService, getServiceAdmin, getServiceClasses, getServiceGrade, getServiceNames, getServiceNames, getServiceNames, getServiceOrWrapper, getServicePassword, getServiceState, getServiceType, getServiceType, getServiceTypes, getShutDown, getUUID, handshake, hasCommunicationID, hasLinkTo, hasService, hasServiceType, interrupt, interrupt, isAdminKey, isCorrectPassword, isPublicMethod, linksToXml, loadObject, messageRetrieve, messageStore, messageTransit, passwordsStateToXml, permanentLinksToXml, removeAllLinksTo, removeAllServices, removeAllServices, removeCommunicationID, removeLinkFromService, removeLinkToService, removePermanentLinkTo, removeService, removeService, removeService, removeServiceAssociation, removeTempPassword, serviceNegotiate, serviceToXml, serviceToXml, setAdminInfo, setCanAccessMeta, setCanAccessNested, setData, setDescription, setIsRemoteCall, setJarFile, setOtherMeta, setParent, setServerPassword, setServiceType, setShutDown, setUUID, startAllThreads, startThread, stopAllThreads, threadAliveState, xmlToDynamicLinks, xmlToService
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected int numberOfIterations
protected java.util.HashMap allData
protected java.util.ArrayList clusterURIs
protected org.ai_heuristic.functs.Function evalMetric
public ClusterLinkService() throws java.lang.Exception
java.lang.Exception
- any error.public ClusterLinkService(java.lang.String thisPassword, java.lang.String thisAdminKey) throws java.lang.Exception
thisPassword
- the component password.thisAdminKey
- the unique service key.java.lang.Exception
- any error.public ClusterLinkService(java.lang.String thisPassword, java.lang.String thisAdminKey, org.licas_xml.abs.Element adminXml) throws java.lang.Exception
thisPassword
- the component password.thisAdminKey
- the unique service key.adminXml
- the admin info or description of this service.java.lang.Exception
- any error.public void resetValues()
resetValues
in interface org.licas.def.evaluate.DataServiceDef
resetValues
in class org.licas.service.sci.DataService
protected boolean iterationsOK(int maxIterations)
maxIterations
- the maximum value to compare with.protected int alreadyLinkedTo(java.lang.String linkTo) throws org.licas.util.exception.ServiceException, java.lang.Exception
linkTo
- the uuid of the service to check for.org.licas.util.exception.ServiceException
- service not found error.java.lang.Exception
- any error.protected java.lang.String getMetricType()
Meta
element.
This check can be performed automatically, but the metric info might not be added,
when a default metric (Euclidean
) can be used instead.