Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes

de.fraunhofer.isst.axbench.Session Class Reference

Manages data of the working session. More...

List of all members.

Static Public Member Functions

static void addFilteredSimulationResult (Model model, ISimulationEventStructure newFilteredSimulationResult)
 adds a filtered simulation result
static void addSessionListener (ISessionListener newListener)
 Adds a session listener.
static void addSimulationResult (Model model, ISimulationEventStructure newSimulationResult)
 adds a simulation result
static void addSynchronizeListener (String identifier, IFileSynchronizeListener newListener)
 Adds a synchronize listener.
static void fireElementChanged (Object objCaller)
 Broadcasts the change of the session element.
static void fireHandleCall (Object objCaller, String content)
 Broadcasts the change of the session element.
static void fireRefreshForbiddenIdentifierList (Object objCaller, IAXLangElement axbenchelement)
 Broadcasts the change of the synchronization point.
static void fireSyncPointFileChanged (Object objCaller, IFile axbenchfile, boolean startup)
 Broadcasts the change of the synchronization point.
static void fireSyncPointRemoved (Object objCaller, IFile axbenchfile, IProject project, IFile file)
 Broadcasts the change of the synchronization point. perhaps its not necessary to broadcast it.
static LinkedHashMap< IFile,
LinkedHashMap< IProject,
ArrayList< IFile > > > 
getArSynchronizationPoints ()
static Object getAxlMetricsResultData (String viewId, IFile axlFile)
 Get the metrics data for the view with viewId.
static HashMap< IFile, Object > getAxlMetricsResultData (String viewId)
static IAXLangElement getCurrentElement ()
 Return the current aXLang element.
static MultiPageEditorPart getCurrentmultipage ()
static ITextEditor getCurrenttexteditor ()
static LinkedHashMap
< MultiPageEditorPart, String > 
getFilelocrelative ()
static ISimulationEventStructure getFilteredSimulationResult (Model model)
 getter method for the last generated filtered simulation result
static ArrayList< String > getForbiddenIdentifiers ()
 the list of the forbidden identifiers which is refresh from the e.g. PVSynchronizationModul .
static LinkedHashMap< String,
Position > 
getIDPositionList ()
static IFile getMainAXBenchModelFile ()
static ArrayList< File > getOpenfiles ()
static String getProjectname ()
static Collection< AXLConstraintgetPVFeatureModelConstraints (IAXLangElement fmodel)
 searches for all constraints inside the FeatureModel.
static LinkedHashMap< IFile,
LinkedHashMap< IProject,
ArrayList< IFile > > > 
getPvSynchronizationPoints ()
static ISimulationEventStructure getSimulationResult (Model model)
 getter method for the last generated simulation result
static int getTabwidth ()
static boolean isAxlcurrentinputsaved ()
static boolean isAxlproject ()
static boolean isDisableAUTOSARPlugin ()
static boolean isDisablePVPlugin ()
static boolean isIncluded ()
static void openView (String id)
 opens a view
static void removeAXLangListener (ISessionListener oldListener)
 Removes a session listener.
static void removeSynchronizeListener (IFileSynchronizeListener oldListener)
 Removes a synchronize listener.
static void resetCurrentElement ()
 not used yet
static void setAxlMetricsResultData (String viewId, IFile axlFile, Object data)
 Store the metrics data for the view with viewId The metrics data is of type "AxlMetricsResultsMap".
static void setAxlproject (boolean axlproject)
static void setCurrentElement (IAXLangElement newElement, Object objCaller)
 Sets a new aXLang element.
static void setCurrentElementAfterSave (IAXLangElement newElement, Object objCaller)
 Sets a new aXLang element after the editor was saved.
static void setCurrentmultipage (MultiPageEditorPart currentmultipage)
static void setCurrenttexteditor (ITextEditor currenttexteditor)
static void setDisableAUTOSARPlugin (boolean disableAUTOSARPlugin)
static void setDisablePVPlugin (boolean disablePVPlugin)
static void setIncluded (boolean included)
static void setMainAXBenchModelFile (IFile mainAXBenchModelFile)
static void setProjectname (String projectname)
static void setTabwidth (int set)

Static Public Attributes

static LinkedHashMap< String,
Position > 
idpositionlist = null

Static Private Member Functions

static synchronized Map
< String, HashMap< IFile,
Object > > 
getAxlMetricsResultData ()
static synchronized Map< Model,
ISimulationEventStructure
getFilteredSimulationResult ()
static synchronized Set
< ISessionListener
getSessionListeners ()
 Returns the session listeners, create empty list if there are none.
static synchronized Map< Model,
ISimulationEventStructure
getSimulationResult ()
static HashMap< String,
IFileSynchronizeListener
getSynchronizeListeners ()
 Returns the synchronize listeners, create empty list if there are none.

Static Private Attributes

static LinkedHashMap< IFile,
LinkedHashMap< IProject,
ArrayList< IFile > > > 
arSynchronizationPoints = new LinkedHashMap<IFile, LinkedHashMap<IProject,ArrayList<IFile>>>()
 the AXBench file,<the synchronized project,the synchronized autosar files>>
static IAXLangElement axlCurrentElement = null
 current aXLang element
static boolean axlcurrentinputsaved = false
 to mark a save action
static Map< String, HashMap
< IFile, Object > > 
axlMetricsResultData
static boolean axlproject = false
 marks if it a axl project ,later it disappears
static MultiPageEditorPart currentmultipage = null
 the current multipage
static ITextEditor currenttexteditor = null
 necessary to get the actual texteditor (axleditor) for the instanceview
static boolean disableAUTOSARPlugin = false
 if its true, inside the ui the autosar table will not appear
static boolean disablePVPlugin = false
 if its true, inside the ui the pv table will not appear
static LinkedHashMap
< MultiPageEditorPart, String > 
filelocrelative = null
static Map< Model,
ISimulationEventStructure
filteredSimulationResult
static ArrayList< String > forbiddenIdentifiers = null
static boolean included = false
 all files where the iaxlangelement is null will marked as included file
static IFile mainAXBenchModelFile = null
 to know in other plugins what the main file is!
static ArrayList< File > openfiles = null
 needed for the AXLWriter to know which fill is currently opened inside axbench
static String projectname = null
 the actual project name
static LinkedHashMap< IFile,
LinkedHashMap< IProject,
ArrayList< IFile > > > 
pvSynchronizationPoints = new LinkedHashMap<IFile, LinkedHashMap<IProject,ArrayList<IFile>>>()
 the AXBench file,<the synchronized project,the synchronized pure.variants files>>
static Set< ISessionListenersetSessionListeners = null
 set of session listeners
static HashMap< String,
IFileSynchronizeListener
setSynchronizeListeners = null
 set of session listeners
static Map< Model,
ISimulationEventStructure
simulationResult
static int tabwidth = 0
 the standard tabwidth to save

Detailed Description

Manages data of the working session.

Author:
Ekkart Kleinod
skaegebein
Version:
0.9.0
Since:
0.7.0

Member Function Documentation

static void de.fraunhofer.isst.axbench.Session.addFilteredSimulationResult ( Model  model,
ISimulationEventStructure  newFilteredSimulationResult 
) [static]

adds a filtered simulation result

Parameters:
newFilteredSimulationResult filtered simulation result
static void de.fraunhofer.isst.axbench.Session.addSessionListener ( ISessionListener  newListener  )  [static]

Adds a session listener.

Parameters:
newListener new session listener
static void de.fraunhofer.isst.axbench.Session.addSimulationResult ( Model  model,
ISimulationEventStructure  newSimulationResult 
) [static]

adds a simulation result

Parameters:
newSimulationResult simulation result
static void de.fraunhofer.isst.axbench.Session.addSynchronizeListener ( String  identifier,
IFileSynchronizeListener  newListener 
) [static]

Adds a synchronize listener.

Parameters:
newListener new synchronize listener
static void de.fraunhofer.isst.axbench.Session.fireElementChanged ( Object  objCaller  )  [static]

Broadcasts the change of the session element.

Parameters:
objCaller calling object
static void de.fraunhofer.isst.axbench.Session.fireHandleCall ( Object  objCaller,
String  content 
) [static]

Broadcasts the change of the session element.

Parameters:
objCaller calling object
static void de.fraunhofer.isst.axbench.Session.fireRefreshForbiddenIdentifierList ( Object  objCaller,
IAXLangElement  axbenchelement 
) [static]

Broadcasts the change of the synchronization point.

Parameters:
objCaller 
axbenchfile 
startup 
static void de.fraunhofer.isst.axbench.Session.fireSyncPointFileChanged ( Object  objCaller,
IFile  axbenchfile,
boolean  startup 
) [static]

Broadcasts the change of the synchronization point.

Parameters:
objCaller 
axbenchfile 
startup 
static void de.fraunhofer.isst.axbench.Session.fireSyncPointRemoved ( Object  objCaller,
IFile  axbenchfile,
IProject  project,
IFile  file 
) [static]

Broadcasts the change of the synchronization point. perhaps its not necessary to broadcast it.

Parameters:
objCaller calling object
static LinkedHashMap<IFile, LinkedHashMap<IProject, ArrayList<IFile> > > de.fraunhofer.isst.axbench.Session.getArSynchronizationPoints (  )  [static]
Returns:
getPvSynchronizationPoints - the pure.variants synchronization points
static Object de.fraunhofer.isst.axbench.Session.getAxlMetricsResultData ( String  viewId,
IFile  axlFile 
) [static]

Get the metrics data for the view with viewId.

Parameters:
viewId 
Returns:
data as Object. It's actual type is "AxlMetricsResultsMap". null if no data is available
See also:
de.fraunhofer.isst.axbench.operations.checker.solver.utilities.AxlMetricsResultsMap
static HashMap<IFile, Object> de.fraunhofer.isst.axbench.Session.getAxlMetricsResultData ( String  viewId  )  [static]
static synchronized Map<String, HashMap<IFile, Object> > de.fraunhofer.isst.axbench.Session.getAxlMetricsResultData (  )  [static, private]
static IAXLangElement de.fraunhofer.isst.axbench.Session.getCurrentElement (  )  [static]

Return the current aXLang element.

Returns:
aXLang element
static MultiPageEditorPart de.fraunhofer.isst.axbench.Session.getCurrentmultipage (  )  [static]
Returns:
the currentmultipage
static ITextEditor de.fraunhofer.isst.axbench.Session.getCurrenttexteditor (  )  [static]
Returns:
the current text editor
static LinkedHashMap<MultiPageEditorPart,String> de.fraunhofer.isst.axbench.Session.getFilelocrelative (  )  [static]
Returns:
the filelocrelative
static ISimulationEventStructure de.fraunhofer.isst.axbench.Session.getFilteredSimulationResult ( Model  model  )  [static]

getter method for the last generated filtered simulation result

Returns:
the last generated filtered simulation result
static synchronized Map<Model, ISimulationEventStructure> de.fraunhofer.isst.axbench.Session.getFilteredSimulationResult (  )  [static, private]
static ArrayList<String> de.fraunhofer.isst.axbench.Session.getForbiddenIdentifiers (  )  [static]

the list of the forbidden identifiers which is refresh from the e.g. PVSynchronizationModul .

Returns:
static LinkedHashMap<String, Position> de.fraunhofer.isst.axbench.Session.getIDPositionList (  )  [static]
static IFile de.fraunhofer.isst.axbench.Session.getMainAXBenchModelFile (  )  [static]
static ArrayList<File> de.fraunhofer.isst.axbench.Session.getOpenfiles (  )  [static]
Returns:
the openfiles
static String de.fraunhofer.isst.axbench.Session.getProjectname (  )  [static]
Returns:
the projectname
static Collection<AXLConstraint> de.fraunhofer.isst.axbench.Session.getPVFeatureModelConstraints ( IAXLangElement  fmodel  )  [static]

searches for all constraints inside the FeatureModel.

Parameters:
fmodel 
Returns:
Return values:
collection of AXLConstraint or
an empty one if there is no constraint
static LinkedHashMap<IFile, LinkedHashMap<IProject, ArrayList<IFile> > > de.fraunhofer.isst.axbench.Session.getPvSynchronizationPoints (  )  [static]
Returns:
getPvSynchronizationPoints - the pure.variants synchronization points
static synchronized Set<ISessionListener> de.fraunhofer.isst.axbench.Session.getSessionListeners (  )  [static, private]

Returns the session listeners, create empty list if there are none.

Returns:
set of session listeners
static synchronized Map<Model, ISimulationEventStructure> de.fraunhofer.isst.axbench.Session.getSimulationResult (  )  [static, private]
static ISimulationEventStructure de.fraunhofer.isst.axbench.Session.getSimulationResult ( Model  model  )  [static]

getter method for the last generated simulation result

Returns:
the last generated simulation result
static HashMap<String,IFileSynchronizeListener> de.fraunhofer.isst.axbench.Session.getSynchronizeListeners (  )  [static, private]

Returns the synchronize listeners, create empty list if there are none.

Returns:
set of synchronize listeners
static int de.fraunhofer.isst.axbench.Session.getTabwidth (  )  [static]
Returns:
the tabwidth
static boolean de.fraunhofer.isst.axbench.Session.isAxlcurrentinputsaved (  )  [static]
Returns:
the axlcurrentinputsaved
static boolean de.fraunhofer.isst.axbench.Session.isAxlproject (  )  [static]
Returns:
the axlproject
static boolean de.fraunhofer.isst.axbench.Session.isDisableAUTOSARPlugin (  )  [static]
Returns:
disableAUTOSARPlugin
static boolean de.fraunhofer.isst.axbench.Session.isDisablePVPlugin (  )  [static]
Returns:
disablePVPlugin
static boolean de.fraunhofer.isst.axbench.Session.isIncluded (  )  [static]
Returns:
the included
static void de.fraunhofer.isst.axbench.Session.openView ( String  id  )  [static]

opens a view

Parameters:
id - e.g. de.fraunhofer.isst.axbench.ui.simulationTraceView org.eclipse.ui.views.ProblemView org.eclipse.jdt.ui.JavadocView org.eclipse.jdt.ui.SourceView org.eclipse.ui.views.PropertySheet org.eclipse.jdt.ui.PackageExplorer org.eclipse.jdt.ui.TypeHierarchy org.eclipse.ui.views.ContentOutline
static void de.fraunhofer.isst.axbench.Session.removeAXLangListener ( ISessionListener  oldListener  )  [static]

Removes a session listener.

Parameters:
oldListener listener to remove
static void de.fraunhofer.isst.axbench.Session.removeSynchronizeListener ( IFileSynchronizeListener  oldListener  )  [static]

Removes a synchronize listener.

todosk

Parameters:
oldListener listener to remove
static void de.fraunhofer.isst.axbench.Session.resetCurrentElement (  )  [static]

not used yet

static void de.fraunhofer.isst.axbench.Session.setAxlMetricsResultData ( String  viewId,
IFile  axlFile,
Object  data 
) [static]

Store the metrics data for the view with viewId The metrics data is of type "AxlMetricsResultsMap".

See also:
de.fraunhofer.isst.axbench.operations.checker.solver.utilities.AxlMetricsResultsMap
Parameters:
viewId 
data 
static void de.fraunhofer.isst.axbench.Session.setAxlproject ( boolean  axlproject  )  [static]
Parameters:
axlproject the axlproject to set
static void de.fraunhofer.isst.axbench.Session.setCurrentElement ( IAXLangElement  newElement,
Object  objCaller 
) [static]

Sets a new aXLang element.

Parameters:
newElement aXLang element
objCaller calling object
static void de.fraunhofer.isst.axbench.Session.setCurrentElementAfterSave ( IAXLangElement  newElement,
Object  objCaller 
) [static]

Sets a new aXLang element after the editor was saved.

Parameters:
newElement aXLang element
objCaller calling object
static void de.fraunhofer.isst.axbench.Session.setCurrentmultipage ( MultiPageEditorPart  currentmultipage  )  [static]
Parameters:
currentmultipage the currentmultipage to set
static void de.fraunhofer.isst.axbench.Session.setCurrenttexteditor ( ITextEditor  currenttexteditor  )  [static]
Parameters:
currenttexteditor the current text editor to set
static void de.fraunhofer.isst.axbench.Session.setDisableAUTOSARPlugin ( boolean  disableAUTOSARPlugin  )  [static]
Parameters:
disableAUTOSARPlugin intends to disable the autosar plugin and all related ui features
static void de.fraunhofer.isst.axbench.Session.setDisablePVPlugin ( boolean  disablePVPlugin  )  [static]
Parameters:
disablePVPlugin intends to disable the pure.variants plugin and all related ui features
static void de.fraunhofer.isst.axbench.Session.setIncluded ( boolean  included  )  [static]
Parameters:
included the included to set
static void de.fraunhofer.isst.axbench.Session.setMainAXBenchModelFile ( IFile  mainAXBenchModelFile  )  [static]
static void de.fraunhofer.isst.axbench.Session.setProjectname ( String  projectname  )  [static]
Parameters:
projectname the projectname to set
static void de.fraunhofer.isst.axbench.Session.setTabwidth ( int  set  )  [static]

Member Data Documentation

LinkedHashMap<IFile,LinkedHashMap<IProject,ArrayList<IFile> > > de.fraunhofer.isst.axbench.Session.arSynchronizationPoints = new LinkedHashMap<IFile, LinkedHashMap<IProject,ArrayList<IFile>>>() [static, private]

the AXBench file,<the synchronized project,the synchronized autosar files>>

current aXLang element

to mark a save action

Map<String, HashMap<IFile, Object> > de.fraunhofer.isst.axbench.Session.axlMetricsResultData [static, private]
boolean de.fraunhofer.isst.axbench.Session.axlproject = false [static, private]

marks if it a axl project ,later it disappears

MultiPageEditorPart de.fraunhofer.isst.axbench.Session.currentmultipage = null [static, private]

the current multipage

ITextEditor de.fraunhofer.isst.axbench.Session.currenttexteditor = null [static, private]

necessary to get the actual texteditor (axleditor) for the instanceview

if its true, inside the ui the autosar table will not appear

boolean de.fraunhofer.isst.axbench.Session.disablePVPlugin = false [static, private]

if its true, inside the ui the pv table will not appear

LinkedHashMap<MultiPageEditorPart,String> de.fraunhofer.isst.axbench.Session.filelocrelative = null [static, private]
ArrayList<String> de.fraunhofer.isst.axbench.Session.forbiddenIdentifiers = null [static, private]
LinkedHashMap<String,Position> de.fraunhofer.isst.axbench.Session.idpositionlist = null [static]
boolean de.fraunhofer.isst.axbench.Session.included = false [static, private]

all files where the iaxlangelement is null will marked as included file

to know in other plugins what the main file is!

ArrayList<File> de.fraunhofer.isst.axbench.Session.openfiles = null [static, private]

needed for the AXLWriter to know which fill is currently opened inside axbench

String de.fraunhofer.isst.axbench.Session.projectname = null [static, private]

the actual project name

LinkedHashMap<IFile,LinkedHashMap<IProject,ArrayList<IFile> > > de.fraunhofer.isst.axbench.Session.pvSynchronizationPoints = new LinkedHashMap<IFile, LinkedHashMap<IProject,ArrayList<IFile>>>() [static, private]

the AXBench file,<the synchronized project,the synchronized pure.variants files>>

set of session listeners

set of session listeners

the standard tabwidth to save