|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.settings.GlobalSettingsMSC
public class GlobalSettingsMSC
Class which contains the global -- not scenario- or dataview specific -- MSC settings which are saved in the global settings file.
Contains the SettingsMSC for all layers and a map of chosen variable fields in the MSC animation for each protocol. The id of the protocol is used since the protocol objects cannot be serialized with a dataview in which the do not exist
Nested Class Summary | |
---|---|
class |
GlobalSettingsMSC.VariableFields
Inner class for the center- and column variable list pairs stored in the map. |
Constructor Summary | |
---|---|
GlobalSettingsMSC()
Constructor creating an empy object |
Method Summary | |
---|---|
java.lang.Object |
getData()
Returns the data that should be saved in the scenario file. |
SettingsMSC |
getSettingsMSC()
Gets the global MSC settings |
GlobalSettingsMSC.VariableFields |
getVariableFields(long protocolId)
Gets the variableFields for the wanted protocol |
void |
putVariableFields(long protocolId,
VariableDefinition[] variablesCenter,
VariableDefinition[] variablesColumns)
Inserts the center- and column- variables for the protocol. |
void |
setData(java.lang.Object data)
Sets the data loaded from the scenario file. |
void |
setSettingsMSC(SettingsMSC newSettingsMSC)
Stores the global MSC settings, other than the variable fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalSettingsMSC()
Method Detail |
---|
public void putVariableFields(long protocolId, VariableDefinition[] variablesCenter, VariableDefinition[] variablesColumns)
protocolId
- the id of the protocol, used instead of Protocol, because it's
dataview-independent when serializing.variablesCenter
- the center variablesvariablesColumns
- the column variablespublic GlobalSettingsMSC.VariableFields getVariableFields(long protocolId)
protocolId
- id of the protocol
public void setSettingsMSC(SettingsMSC newSettingsMSC)
newSettingsMSC
- The new settingspublic SettingsMSC getSettingsMSC()
public java.lang.Object getData()
Saveable
getData
in interface Saveable
public void setData(java.lang.Object data)
Saveable
setData
in interface Saveable
data
- loaded object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |