public class SimulationSetups
extends java.util.TreeMap<java.lang.String,java.lang.String>
Project
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SETUP_NAME |
Constructor and Description |
---|
SimulationSetups(Project project,
java.lang.String currentSimulationSetup)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsSetupName(java.lang.String setupName2Test)
This Method checks if the incoming Setup-Name is already
used in the current List of Setups (HashMap).
|
SimulationSetup |
getCurrSimSetup()
Returns the current
SimulationSetup . |
java.lang.String |
getCurrSimXMLFile()
Returns the current
SimulationSetup 's xml file name as String (full path). |
java.lang.String |
getFirstSetup()
Finds and returns the first setup name using an alphabetic order.
|
java.lang.String |
getSuggestSetupFile(java.lang.String inputText)
This method returns a Suggestion for the Name of a Setup-File.
|
void |
setCurrSimSetup(SimulationSetup currSimSetup)
Sets the current
SimulationSetup . |
void |
setupAddNew(java.lang.String newSetupName,
java.lang.String newFileName)
Adds a new Setup to the setups.
|
void |
setupCleanUpSubFolder()
This Method scans the Folder of the Simulation-Setups and
deletes all file, which are not used in this project.
|
void |
setupCopy(java.lang.String nameOld,
java.lang.String nameNew,
java.lang.String fileNameNew)
Copies a
SimulationSetup and the associated files. |
void |
setupCreateDefault()
This Method creates the 'default'
SimulationSetup . |
boolean |
setupLoadAndFocus(SimulationSetupNotification.SimNoteReason action,
java.lang.String name,
boolean isAddedNew)
Set the current Setup-File to the one given by name.
|
void |
setupRemove(java.lang.String setupName)
Removes a setup form the list of setups.
|
void |
setupRename(java.lang.String nameOld,
java.lang.String nameNew,
java.lang.String fileNameNew)
Renames a Setup and the associated file.
|
void |
setupSave()
This Method saves the current.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
public static final java.lang.String DEFAULT_SETUP_NAME
public SimulationSetups(Project project, java.lang.String currentSimulationSetup)
project
- the projectcurrentSimulationSetup
- the current simulation setuppublic void setupCreateDefault()
SimulationSetup
.public void setupAddNew(java.lang.String newSetupName, java.lang.String newFileName)
newSetupName
- the namenewFileName
- the new file namepublic void setupRemove(java.lang.String setupName)
setupName
- the setup to removepublic void setupRename(java.lang.String nameOld, java.lang.String nameNew, java.lang.String fileNameNew)
nameOld
- the name oldnameNew
- the name newfileNameNew
- the file name newpublic void setupCopy(java.lang.String nameOld, java.lang.String nameNew, java.lang.String fileNameNew)
SimulationSetup
and the associated files.nameOld
- the name of the SimulationSetup
to copynameNew
- the name of the copied SimulationSetup
fileNameNew
- the file name for the new SimulationSetup
public boolean setupLoadAndFocus(SimulationSetupNotification.SimNoteReason action, java.lang.String name, boolean isAddedNew)
action
- the actionname
- the nameisAddedNew
- the is added newpublic java.lang.String getFirstSetup()
public java.lang.String getSuggestSetupFile(java.lang.String inputText)
inputText
- the input textpublic boolean containsSetupName(java.lang.String setupName2Test)
setupName2Test
- the setup name to testpublic void setupSave()
public void setupCleanUpSubFolder()
public SimulationSetup getCurrSimSetup()
SimulationSetup
.SimulationSetup
public void setCurrSimSetup(SimulationSetup currSimSetup)
SimulationSetup
.currSimSetup
- the new current SimulationSetup
public java.lang.String getCurrSimXMLFile()
SimulationSetup
's xml file name as String (full path).