A Framework for On-line Calibration of LINAC Devices