Ejemplo n.º 1
0
		/// <summary>
		///   Copies the fault activation states of this instance to <paramref name="target" />.
		/// </summary>
		private void CopyFaultActivationStates(RuntimeModel target)
		{
			for (var i = 0; i < _faults.Length; ++i)
				target._faults[i].Activation = _faults[i].Activation;

			target.UpdateFaultSets();
		}
Ejemplo n.º 2
0
		/// <summary>
		///   Instantiates a runtime model.
		/// </summary>
		/// <param name="model">The model that should be instantiated.</param>
		/// <param name="formulas">The formulas the runtime model should be instantiated with.</param>
		protected void Create(ModelBase model, params Formula[] formulas)
		{
			RuntimeModel = RuntimeModel.Create(model, formulas);
		}