use of cbit.vcell.microscopy.FRAPModel in project vcell by virtualcell.
the class ModelTypesDescriptor method aboutToDisplayPanel.
public void aboutToDisplayPanel() {
FRAPStudy fStudy = batchRunWorkspace.getWorkingFrapStudy();
// if there are models selected and saved, load the model types. otherwise, apply default(diffusion with one component is selected).
if (fStudy.getModels() != null && fStudy.getModels().length > 0 && fStudy.getSelectedModels().size() > 0) {
modelTypesPanel.clearAllSelected();
FRAPModel[] models = fStudy.getModels();
if (models[FRAPModel.IDX_MODEL_DIFF_ONE_COMPONENT] != null) {
modelTypesPanel.setDiffOneSelected(true);
}
if (models[FRAPModel.IDX_MODEL_DIFF_TWO_COMPONENTS] != null) {
modelTypesPanel.setDiffTwoSelected(true);
}
if (models[FRAPModel.IDX_MODEL_REACTION_OFF_RATE] != null) {
modelTypesPanel.setReactionOffRateSelected(true);
}
} else // new frap document
{
modelTypesPanel.clearAllSelected();
modelTypesPanel.setDiffOneSelected(true);
}
}
use of cbit.vcell.microscopy.FRAPModel in project vcell by virtualcell.
the class EstParams_OneDiffComponentDescriptor method preNextProcess.
// save model parameters
public ArrayList<AsynchClientTask> preNextProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
AsynchClientTask saveParametersTask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_NONSWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
Parameter[] params = ((EstParams_OneDiffComponentPanel) getPanelComponent()).getCurrentParameters();
FRAPModel frapModel = getFrapWorkspace().getWorkingFrapStudy().getFrapModel(FRAPModel.IDX_MODEL_DIFF_ONE_COMPONENT);
frapModel.setModelParameters(params);
frapModel.setData(((EstParams_OneDiffComponentPanel) getPanelComponent()).getCurrentEstimationResults());
}
};
taskArrayList.add(saveParametersTask);
return taskArrayList;
}
use of cbit.vcell.microscopy.FRAPModel in project vcell by virtualcell.
the class EstParams_ReacBindingDescriptor method saveModelParameters.
private void saveModelParameters() {
Parameter[] params = ((EstParams_ReacBindingPanel) getPanelComponent()).getCurrentParameters();
FRAPModel frapModel = getFrapWorkspace().getWorkingFrapStudy().getFrapModel(FRAPModel.IDX_MODEL_DIFF_BINDING);
frapModel.setModelParameters(params);
frapModel.setData(((EstParams_ReacBindingPanel) getPanelComponent()).getCurrentSimResults());
frapModel.setTimepoints(((EstParams_ReacBindingPanel) getPanelComponent()).getCurrentRawSimTimePoints());
}
Aggregations