public abstract class BehaviourModule extends FrameworkModule
passwordHandler, service, serviceType
jarFile, syncOn, uuid
Constructor and Description |
---|
BehaviourModule(Auto service,
PasswordHandler passwordHandler)
Create a new instance of BehaviourModule.
|
Modifier and Type | Method and Description |
---|---|
abstract MessageInfo |
behaviourAction(MessageInfo messageInfo,
HeuristicModule evaluate,
SM_Data sm)
Run the behaviour evaluation.
|
protected boolean |
testEnded(org.licas_xml.abs.Element reply)
Return true if the test has ended.
|
canAccess, canAccessTemp, getPasswordHandler, getPasswordHandler, getServerPassword, getServicePassword, getServiceType, isAdminKey, setServiceDetails, setServiceType
getJarFile, getUUID, loadObject, setJarFile, setUUID, threadAliveState
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUUID, setJarFile, setUUID
public BehaviourModule(Auto service, PasswordHandler passwordHandler) throws java.lang.Exception
service
- the probably Auto
-derived service the behaviour is for.passwordHandler
- the service's password handler.java.lang.Exception
- any error.public abstract MessageInfo behaviourAction(MessageInfo messageInfo, HeuristicModule evaluate, SM_Data sm) throws java.lang.Exception
messageInfo
- the Input message to evaluate.evaluate
- heuristic to evaluate the behaviour with.sm
- the service module.java.lang.Exception
- any error.protected boolean testEnded(org.licas_xml.abs.Element reply)
reply
- the evaluation reply.null
and indicates the end of the test.