public class UserConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LAST_UPDATE_PROPERTIE |
static java.lang.String |
TEST_MODE_PROPERTY |
static java.lang.String |
UPDATE_PATH |
static java.lang.String |
UPDATE_PATH_DEFAULT |
static java.lang.String |
UPDATE_REGULAR_PROPERTIE |
static java.lang.String |
USER_CONFIG_FILE |
| Constructor and Description |
|---|
UserConfiguration(java.lang.String path,
ModeUtil modeUtil)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLastUpdate()
Return the time of the last check for update.
|
int |
getRadexDataMaxColl()
Return the maximum number of collisional transitions for Java Radex from
CASSIS settings.
|
int |
getRadexDataMaxLev()
Return the maximum number of energy level for Java Radex from
CASSIS settings.
|
int |
getRadexDataMaxLine()
Return the maximum number of radiative transitions for Java Radex from
CASSIS settings.
|
int |
getRadexDataMaxPart()
Return the maximum number of collision partners for Java Radex from
CASSIS settings.
|
int |
getRadexDataMaxTemp()
Return the maximum number of collision temperatures for Java Radex from
CASSIS settings.
|
java.lang.String |
getRadexFortranPath()
Return the Radex Fortran path.
|
java.lang.String |
getRadexType()
Return the Radex type : "Java" or "Settings".
|
java.lang.String |
getUpdatePath()
Return the Update path.
|
UpdateView.UpdateRegular |
getUpdateRegular()
Return the schedule of the update check.
|
boolean |
isForceDbOnOnlineMode()
Return if CASSIS should start with the configured database (true)
or with "NO" database (false) on online mode.
|
boolean |
isOpenFileDirectly()
Return if CASSIS should open file directly when receveided from SAMP.
|
boolean |
isSampOnAutoStart()
Return if CASSIS should create or connect to a samp hub on starting.
|
boolean |
isTestMode()
Return if CASSIS is in test mode.
|
void |
setForceDbOnOnlineMode(boolean force)
Set the new value of the force database on online mode.
|
void |
setLastUpdate(java.lang.String lastUpdate)
Update the time of the last check for update.
|
void |
setOpenFileDirectly(boolean value)
Set the new value of the open file directly functionnality.
|
void |
setRadexDataMaxColl(int radexDataMaxColl)
Set the maximum number of collisional transitions for Radex Java.
|
void |
setRadexDataMaxLev(int radexDataMaxLev)
Set the new maximum number of energy level for Radex Java.
|
void |
setRadexDataMaxLine(int radexDataMaxLine)
Set the maximum number of radiative transitions for Radex Java.
|
void |
setRadexDataMaxPart(int radexDataMaxPart)
Set the new maximum number of collision partners for Radex Java.
|
void |
setRadexDataMaxTemp(int radexDataMaxTemp)
Set the new maximum number of collision temperatures for Radex Java.
|
void |
setRadexFortranPath(java.lang.String radexFortranPath)
Set the new value of the Radex Fortran path.
|
void |
setRadexToFortran()
Makes CASSIS to use Radex Fortran.
|
void |
setRadexToJava()
Makes CASSIS to use Radex Java.
|
void |
setRadexType(java.lang.String radexType)
Set the new Radex type to use.
|
void |
setSampOnAutoStart(boolean value)
Set the new value of the auto start samp : determine if CASSIS should
create a samp hub or connect to an existing one on start automatically.
|
void |
setUpdateRegular(UpdateView.UpdateRegular updateRegular)
Set the schedule of the update check.
|
void |
updateJavaRadexConfig()
Update Radex Java settings.
|
void |
updateRadexConfig()
Update Radex settings.
|
public static final java.lang.String UPDATE_REGULAR_PROPERTIE
public static final java.lang.String LAST_UPDATE_PROPERTIE
public static final java.lang.String UPDATE_PATH
public static final java.lang.String UPDATE_PATH_DEFAULT
public static final java.lang.String USER_CONFIG_FILE
public static final java.lang.String TEST_MODE_PROPERTY
public UserConfiguration(java.lang.String path,
ModeUtil modeUtil)
path - The CASSIS path.modeUtil - The modeutil.public final UpdateView.UpdateRegular getUpdateRegular()
public final java.lang.String getLastUpdate()
public final java.lang.String getUpdatePath()
public final void setUpdateRegular(UpdateView.UpdateRegular updateRegular)
updateRegular - the schedule ofthe update check.public final void setLastUpdate(java.lang.String lastUpdate)
lastUpdate - the time of the last check for update.public final boolean isTestMode()
public boolean isSampOnAutoStart()
public void setSampOnAutoStart(boolean value)
value - true to start samp automatically, false otherwise.public java.lang.String getRadexType()
public void setRadexType(java.lang.String radexType)
radexType - the new Radex type to use : "Java" or "Fortran".public java.lang.String getRadexFortranPath()
public void setRadexFortranPath(java.lang.String radexFortranPath)
radexFortranPath - the Radex Fortran path.public int getRadexDataMaxPart()
public void setRadexDataMaxPart(int radexDataMaxPart)
updateJavaRadexConfig().radexDataMaxPart - The maximum number of collision partners on Java Radex.public int getRadexDataMaxTemp()
public void setRadexDataMaxTemp(int radexDataMaxTemp)
updateJavaRadexConfig().radexDataMaxTemp - The maximum number of collision temperatures on Java Radex.public int getRadexDataMaxLev()
public void setRadexDataMaxLev(int radexDataMaxLev)
updateJavaRadexConfig().radexDataMaxLev - The maximum number of energy level on Java Radex.public int getRadexDataMaxLine()
public void setRadexDataMaxLine(int radexDataMaxLine)
updateJavaRadexConfig().radexDataMaxLine - The maximum number of radiative transitions on Java Radex.public int getRadexDataMaxColl()
public void setRadexDataMaxColl(int radexDataMaxColl)
updateJavaRadexConfig().radexDataMaxColl - The maximum number of collisional transitions on Java Radex.public void updateJavaRadexConfig()
public void setRadexToFortran()
public void setRadexToJava()
public void updateRadexConfig()
public boolean isOpenFileDirectly()
public void setOpenFileDirectly(boolean value)
value - the open file directly value.public boolean isForceDbOnOnlineMode()
public void setForceDbOnOnlineMode(boolean force)
force - true if CASSIS should start with the configured database or
false if CASSIS should start with "NO" database on online mode.