Package edu.kit.mcda

Class MCDA_GUI

All Implemented Interfaces:
Constants, IResourceDefinitions, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MCDA_GUI extends edu.kit.ites.uuif.UUIF<MCDA_Container> implements IResourceDefinitions, Constants
Author:
tim
See Also:
  • Field Details

  • Constructor Details

    • MCDA_GUI

      public MCDA_GUI(MCDA_KIT _MCDA_KIT)
      Constructor of this class.Calls preInit(), init() and postInit();
      Parameters:
      _MCDA_KIT -
  • Method Details

    • updateLanguage

      public void updateLanguage()
      Changes the language of all text in this component
      Overrides:
      updateLanguage in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • getGoal

      public Goal getGoal()
      Returns:
      the goal
    • setGoal

      public void setGoal(Goal _goal)
      Parameters:
      _goal - the goal to set
    • preCreate

      public void preCreate()
      Overrides:
      preCreate in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • postCreate

      public void postCreate()
      Overrides:
      postCreate in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • preLoad

      public void preLoad()
      Overrides:
      preLoad in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • postLoad

      public void postLoad()
      Overrides:
      postLoad in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • preFinish

      public void preFinish()
      Overrides:
      preFinish in class edu.kit.ites.uuif.UUIF<MCDA_Container>
    • getEnsembleManager

      public EnsembleManager getEnsembleManager()
      Get the ensembleManager
      Returns:
      the ensembleManager used for ensemble.
    • getColorManager

      public ColorManager getColorManager()
    • getAbstractionLayer

      public AbstractionLayer getAbstractionLayer()
    • getEqualizationProperty

      public boolean getEqualizationProperty()
    • setEqualizationProperty

      public void setEqualizationProperty(boolean _value)
    • getColorMode

      public ColorManager.ColorMode getColorMode()
    • getEnsembleSize

      public int getEnsembleSize()
    • setEnsembleSize

      public void setEnsembleSize(int _ensembleSize)
    • getDefaultQualitativeValueSets

      public ArrayList<QualitativeSet> getDefaultQualitativeValueSets()
    • addCustomQualitativeValueSet

      public void addCustomQualitativeValueSet(QualitativeSet _qualitativeValueSet)
    • removeCustomQualitativeValueSet

      public void removeCustomQualitativeValueSet(QualitativeSet _qualitativeValueSet)
    • getCustomQualitativeValueSets

      public ArrayList<QualitativeSet> getCustomQualitativeValueSets()
    • isDefaultQualitativeValueSet

      public boolean isDefaultQualitativeValueSet(QualitativeSet _qualitativeValueSet)
    • isCustomQualitativeValueSet

      public boolean isCustomQualitativeValueSet(QualitativeSet _qualitativeValueSet)
    • isUsedQualitativeValueSet

      public boolean isUsedQualitativeValueSet(QualitativeSet _qualitativeValueSet)
    • initDefaultQualitativeValueSets

      public void initDefaultQualitativeValueSets()
    • initCustomQualitativeValueSets

      public void initCustomQualitativeValueSets()
    • storeCustomQualitativeSets

      public void storeCustomQualitativeSets()
    • updateTitle

      public void updateTitle()
    • getProjectSummaries

      public ArrayList<edu.kit.ites.uuif.ProjectSummary> getProjectSummaries(File[] _files)
    • getProjectSummary

      public edu.kit.ites.uuif.ProjectSummary getProjectSummary(File _file)
    • getDefaultNew

      public void getDefaultNew()
      Get the default new from wrapper.
    • importValues

      public void importValues()
      Imports the criteria strings from XML.
    • importValues

      public void importValues(File _file)
      Imports the criteria strings from XML.
      Parameters:
      _file - the file to export to
    • importWeighting

      public void importWeighting()
      Imports the criteria weighting from XML.
    • importWeighting

      public void importWeighting(File _file)
      Imports the criteria weighting from XML.
      Parameters:
      _file - the file to export to
    • importCSV

      public void importCSV()
      Imports from CSV.
    • importCSV

      public void importCSV(File _file)
    • importExcel

      public void importExcel()
      Import from XLSX.
    • importExcel

      public void importExcel(File _file)
      Import MCDA data from Excel file. Three sheets are looked for: MCDA_values, MCDA_weights, MCDA_XML. If MCDA_XML exists, this is loaded and values and weights are filled according to the other sheets. If MCDA_XML does not exist, an MCDA with defaults is generated from the values and weights.
      Parameters:
      _file -
    • importGoogleValues

      public void importGoogleValues()
      Import CSV from google forms. Delegates to importGoogleValues(java.io.File).
    • importGoogleValues

      public void importGoogleValues(File _file)
      Import CSV from google forms. Requires a matrix of timestamp, criteria times alternatives columns and 1 to r rows of values. Columns are assumed in order criterion1 x alternative1, criterion1 x alternative2, ... criterionN x alternativeM If more than 1 row of values exists, a distribution histogram is assumed.
      Parameters:
      _file -
    • exportValues

      public void exportValues()
      Exports the criteria values to XML.
    • exportValues

      public void exportValues(File _file)
      Exports the criteria strings to XML.
      Parameters:
      _file - the file to export to
    • exportWeighting

      public void exportWeighting()
      Exports the criteria weighting to XML.
    • exportWeighting

      public void exportWeighting(File _file)
      Exports the criteria weighting to XML.
      Parameters:
      _file - the file to export to
    • exportReport

      public void exportReport()
      Exports the results as HTML report.
    • exportReportHTML

      public void exportReportHTML(File _file)
      Exports the results as HTML report.
      Parameters:
      _file - the file to export to
    • exportReportWord

      public void exportReportWord(File _file)
      Exports the results as Word report to file.
      Parameters:
      _file - the file to export to
    • exportReportWord

      public void exportReportWord(OutputStream _os) throws IOException
      Exports the results as Word report to file.
      Parameters:
      _os -
      Throws:
      IOException
    • exportReportWord

      public org.apache.poi.xwpf.usermodel.XWPFDocument exportReportWord()
      Exports the results as Word report.
      Returns:
      the word document containing the report
    • exportAsHTML

      public void exportAsHTML()
      Exports a goal as a html file
    • exportAsHTML

      public void exportAsHTML(File _file)
      Exports a goal as a html file using a XSLTransformer
      Parameters:
      _file - the file to export to
    • exportResults

      public void exportResults()
      Exports the results to XML.
    • exportResults

      public void exportResults(File _file)
      Exports the results to XML.
      Parameters:
      _file - the file to export to
    • exportCSV

      public void exportCSV()
      Exports the results to CSV.
    • exportCSV

      public void exportCSV(File _file)
    • exportExcel

      public void exportExcel()
      Exports the results to XLSX.
    • exportExcel

      public void exportExcel(File _file)
      Exports the results to XLSX.
      Parameters:
      _file - the file to export to
    • showAdditionalInfoFrame

      public void showAdditionalInfoFrame(MetaInformation _information)
    • showNormalization

      public void showNormalization(MetaInformation _information)
    • showWeightsAHP

      public void showWeightsAHP()
    • showWeightsSwing

      public void showWeightsSwing(String _id)
    • showWeightsSmart

      public void showWeightsSmart(String _id)
    • showDefaultFrames

      public void showDefaultFrames()
      Opens the default internal frames
    • showDefaultFrames

      public void showDefaultFrames(boolean _doTileLayout)
      Opens the default internal frames
      Parameters:
      _doTileLayout -
    • removeCriterionWithUndoRedo

      public void removeCriterionWithUndoRedo(Criterion _criterion)
    • moveCriterionWithUndoRedo

      public void moveCriterionWithUndoRedo(Criterion _criterion, CriterionGroup _group)
    • addCriterionWithUndoRedo

      public void addCriterionWithUndoRedo(Criterion _criterion, CriterionGroup _group, double _weight)
    • removeGroupWithUndoRedo

      public void removeGroupWithUndoRedo(CriterionGroup _group)
    • moveGroupWithUndoRedo

      public void moveGroupWithUndoRedo(CriterionGroup _group, CriterionGroup _targetgroup)
    • addGroupWithUndoRedo

      public void addGroupWithUndoRedo(CriterionGroup _group, CriterionGroup _parent, double _weight)
    • removeAlternativeWithUndoRedo

      public void removeAlternativeWithUndoRedo(Alternative _alternative)
    • addAlternativeWithUndoRedo

      public void addAlternativeWithUndoRedo(Alternative _alternative)
    • changeWeightWithUndoRedo

      public void changeWeightWithUndoRedo(CriterionGroup _group, double _newValue, double _oldValue, String _weightSetID)
    • changeWeightWithUndoRedo

      public void changeWeightWithUndoRedo(Criterion _criterion, double _newValue, double _oldValue, String _weightSetID)
    • changeWeightFunctionWithUndoRedo

      public void changeWeightFunctionWithUndoRedo(CriterionGroup _parent, ValueFunction _oldfunction, ValueFunction _newfunction, String _label, String _id, String _weightSetID)
    • changeWeightSetSwingWithUndoRedo

      public void changeWeightSetSwingWithUndoRedo(LinkedHashMap<String,Double> _ratings)
    • changeWeightSetSmartWithUndoRedo

      public void changeWeightSetSmartWithUndoRedo(LinkedHashMap<String,Double> _ratings)
    • changeWeightSetAhpWithUndoRedo

      public void changeWeightSetAhpWithUndoRedo(LinkedHashMap<String,Double> _ratings)
    • changeActiveWeightSetWithUndoRedo

      public void changeActiveWeightSetWithUndoRedo(String _oldId, String _newId)
    • changeValueFunctionWithUndoRedo

      public void changeValueFunctionWithUndoRedo(Criterion _criterion, Alternative _alternative, ValueFunction _oldfunction, ValueFunction _newfunction)
    • changeQualitativeValueWithUndoRedo

      public void changeQualitativeValueWithUndoRedo(Criterion _criterion, Alternative _alternative, String _newValue)
    • changeQualitativeSetWithUndoRedo

      public void changeQualitativeSetWithUndoRedo(Criterion _criterion, QualitativeSet _newValue)
    • createWeightSetWithUndoRedo

      public void createWeightSetWithUndoRedo(String _labelWeightingset, WeightSetData.WeightSetOrigin _origin, String _oldId)
    • removeWeightSetWithUndoRedo

      public void removeWeightSetWithUndoRedo(String _idWeightingSet)
    • createWeightSetSwingWithUndoRedo

      public void createWeightSetSwingWithUndoRedo(LinkedHashMap<String,Double> _ratings, String _labelWeightingSet)
    • createWeightSetSmartWithUndoRedo

      public void createWeightSetSmartWithUndoRedo(LinkedHashMap<String,Double> _ratings, String _labelWeightingSet)
    • createWeightSetAhpWithUndoRedo

      public void createWeightSetAhpWithUndoRedo(LinkedHashMap<String,Double> _ratings, String _labelWeightingset)
    • createWeightSetAverageWithUndoRedo

      public void createWeightSetAverageWithUndoRedo(String _labelWeightingset, ArrayList<String> _weightsetslist)
    • createWeightSetHistogramWithUndoRedo

      public void createWeightSetHistogramWithUndoRedo(String _labelWeightingset, LinkedHashMap<String,Double> _weightsetsmap)
    • renameWeightSetWithUndoRedo

      public void renameWeightSetWithUndoRedo(String _oldLabel, String _newLabel)
    • changeColorWithUndoRedo

      public void changeColorWithUndoRedo(MetaInformation _information, Color _oldColor, Color _newColor)
    • changeEnsembleSizeWithUndoRedo

      public void changeEnsembleSizeWithUndoRedo(Ensemble _ensemble, int _oldEnsembleSize, int _newEnsembleSize)
    • changeNormalizationWithUndoRedo

      public void changeNormalizationWithUndoRedo(Criterion _criterion, AbstractNormalization _newNormalize)
    • changeNormalizationAllWithUndoRedo

      public void changeNormalizationAllWithUndoRedo(LinkedHashMap<Criterion,AbstractNormalization> _normalizelist)
    • changeAggregatorWithUndoRedo

      public void changeAggregatorWithUndoRedo(AbstractAggregation _oldAggregator, AbstractAggregation _newAggregator)
    • changeUnitWithUndoRedo

      public void changeUnitWithUndoRedo(Criterion _criterion, String _oldUnit, String _newUnit)
    • changeInverseWithUndoRedo

      public void changeInverseWithUndoRedo(Criterion _criterion, boolean _oldInverse, boolean _newInverse)
    • changeLabelWithUndoRedo

      public void changeLabelWithUndoRedo(MetaInformation _information, String _oldLabel, String _newLabel)
    • changeDescriptionWithUndoRedo

      public void changeDescriptionWithUndoRedo(MetaInformation _information, String _oldDescription, String _newDescription)