Package HAL.Tools.InteractiveModel
Class InteractiveModel
- java.lang.Object
-
- HAL.Gui.UIWindow
-
- HAL.Tools.InteractiveModel.InteractiveModel
-
public class InteractiveModel extends UIWindow
-
-
Constructor Summary
Constructors Constructor Description InteractiveModel(TreatableTumor myModel, int nSteps, int stateSaveFreq, int visX, int visY, int visScale, int timeScaleY, int intensityScaleX, int stepMSmax, boolean redrawOnTreatmentSwitch, boolean quickStart)
-
Method Summary
Modifier and Type Method Description voidCheckValidModel()voidDrawIntensityLines()voidDrawTimeline()intGetFirstDivergence(int max)intGetTick()voidInvalidateHistory(int tick)voidJumpStep(int jumpStep)voidPlanToHistory(int step)voidRunGui()starts the gui thread and reveals the gui to the uservoidRunNextStep()voidTogglePause()java.lang.StringToPercent(double prop)intToScore(double toxProp, double treatProp)-
Methods inherited from class HAL.Gui.UIWindow
AddCol, AddKeyResponses, Close, GetBool, GetDouble, GetInt, GetString, GreyOut, IsActive, IsClosed, IsKeyDown, IsKeyDown, IsRunning, LabelStrings, SetColor, SetLables, SetParam, SetParamChangeAction, SetParamValues, SetValsAndLabels, TickPause, ValueStrings
-
-
-
-
Field Detail
-
vis
public final UIGrid vis
-
-
Constructor Detail
-
InteractiveModel
public InteractiveModel(TreatableTumor myModel, int nSteps, int stateSaveFreq, int visX, int visY, int visScale, int timeScaleY, int intensityScaleX, int stepMSmax, boolean redrawOnTreatmentSwitch, boolean quickStart)
-
-
Method Detail
-
TogglePause
public void TogglePause()
-
CheckValidModel
public void CheckValidModel()
-
DrawTimeline
public void DrawTimeline()
-
ToPercent
public java.lang.String ToPercent(double prop)
-
ToScore
public int ToScore(double toxProp, double treatProp)
-
DrawIntensityLines
public void DrawIntensityLines()
-
PlanToHistory
public void PlanToHistory(int step)
-
InvalidateHistory
public void InvalidateHistory(int tick)
-
GetFirstDivergence
public int GetFirstDivergence(int max)
-
JumpStep
public void JumpStep(int jumpStep)
-
RunNextStep
public void RunNextStep()
-
GetTick
public int GetTick()
-
-