Package net.simplace.pipe.functionality
Klasse FWAbstractFunctionality
java.lang.Object
java.lang.Thread
net.simplace.pipe.functionality.FWAbstractFunctionality
- Alle implementierten Schnittstellen:
Runnable
- Bekannte direkte Unterklassen:
BrowserFunctionality,ConsoleOutFunctionality,DatabaseAccessFunctionality,EditXMLFunctionality,FormFunctionality,PDFViewerFunctionality,PipeLineFunctionality,ShowImageFunctionality,SimEnvGraphFunctionality
Functionality is used to start functions in Framework by class for name instatiation. Method
startFunctionaltiy is allways called when functionality starts.
Abstract implemented parts:
Parameters are handled by AbstractFuncitonality. You have access to Mainframe and the MainTab
in TabViewModule. Additionally you can create new Tab for started Functionaliatimplementation.
For instantiation use FunctionalityFactory with specific FunctionModel.
- Autor:
- Andreas Enders
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Feldübersicht
Von Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedDefault constructor is protected for beeing overwritte by implementation - used for ClassForName implementation -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected org.jdom2.ElementgetID()Collection<org.jdom2.Element> protected StringgetLocaleValue(String aKey) This method limits the coding for reading values from the locale.evaluating the expression for nextFunction and returning itgetOID()getParameter(String aKey) evaluating the expression for previousFunction and returning itbooleanprotected voidinitialize(Map<String, Object> aParameterMap) method initializes the Functionality implementation with jdom Elementprotected voidinitialize(FWFunctionalityModel aFunctionModel) method initializes the Functionality implementation with jdom Elementvoidrun()abstract method which has to be implemented in implementation - allways executed in Framework while this class is usedabstract method which has to be implemented in implementation - always executed in Framework while this class is usedvoidsetCenterPanel(JPanel aCenterPanel) protected voidsetCurrentThread(Thread aCurrentThread) voidsetObservable(FWObservable aOservable) voidsetOutputParameter(String aKey, Object aValue) booleanprotected abstract voidabstract method which has to be implemented in implementation - allways executed in Framework while this class is usedbooleanstopping current Thread if it is still runningorg.jdom2.ElementtoXML()Von Klasse geerbte Methoden java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Konstruktordetails
-
FWAbstractFunctionality
protected FWAbstractFunctionality()Default constructor is protected for beeing overwritte by implementation - used for ClassForName implementation
-
-
Methodendetails
-
initialize
method initializes the Functionality implementation with jdom Element- Parameter:
aParameterMap-
-
initialize
method initializes the Functionality implementation with jdom Element- Parameter:
aFunctionModel-
-
startFunctionality
abstract method which has to be implemented in implementation - allways executed in Framework while this class is used- Löst aus:
Exception
-
getFunctionElement
protected org.jdom2.Element getFunctionElement()- Gibt zurück:
- returns the Functionelement saved in this Functionality
-
runFunctionality
abstract method which has to be implemented in implementation - always executed in Framework while this class is used- Gibt zurück:
- FWObservable
- Löst aus:
Exception
-
run
public void run()abstract method which has to be implemented in implementation - allways executed in Framework while this class is used -
getID
- Gibt zurück:
- Identifier of this Functionality
-
getSystemID
- Gibt zurück:
- Identifier of this Functionality
-
getOID
- Gibt zurück:
- Objectidentifierer of this Functionaliy - allways unique!
-
getUserGroup
- Gibt zurück:
- usergroup which is allowed to use this function
-
getStringParameterValue
- Parameter:
aKey-- Gibt zurück:
- one parameter value for given key - null if key was not set
-
getParameter
- Parameter:
aKey-- Gibt zurück:
- parameter specified by aKey
-
getMainFrame
- Gibt zurück:
- MainFrame of application
-
getMainComponent
- Gibt zurück:
- selected tab panel of TabView
-
getObservable
- Gibt zurück:
- the output parameter map != input parameter map
-
getNextFunction
evaluating the expression for nextFunction and returning it- Gibt zurück:
- the next Function ID String
-
getPreviousFunction
evaluating the expression for previousFunction and returning it- Gibt zurück:
- the previous Function ID String
-
shouldFunctionBeRun
- Gibt zurück:
- if this function should be run
- Löst aus:
PipeLineException
-
setOutputParameter
- Parameter:
aKey-aValue-
-
setObservable
- Parameter:
aOservable-
-
getLocaleValue
This method limits the coding for reading values from the locale.- Parameter:
aKey-- Gibt zurück:
- LocaleValue specified by aKey
-
stopThread
public boolean stopThread()stopping current Thread if it is still running- Gibt zurück:
- true, if the Thread was running and it is stopped, false if it was already stopped
-
setCurrentThread
- Parameter:
aCurrentThread- the currentThread to set
-
hasInfoElements
public boolean hasInfoElements()- Gibt zurück:
- true, if InfoElements are contained
-
getInfoElements
- Gibt zurück:
- collection of InfoElements
-
getCenterPanel
- Gibt zurück:
- center Panel
-
setCenterPanel
- Parameter:
aCenterPanel-
-
getCurrentThread
- Gibt zurück:
- the current Thread
-
toXML
public org.jdom2.Element toXML()- Gibt zurück:
- the generated XML as description of this functionality
-