Exemplo n.º 1
0
 public SetProteinMembraneLocationCommand(PKSim.Core.Model.IndividualProtein protein, MembraneLocation membraneLocation, IExecutionContext context)
 {
     _protein             = protein;
     BuildingBlockId      = context.BuildingBlockIdContaining(protein);
     _newMembraneLocation = membraneLocation;
     ObjectType           = PKSimConstants.ObjectTypes.Protein;
     CommandType          = PKSimConstants.Command.CommandTypeEdit;
     _proteinId           = _protein.Id;
     context.UpdateBuildinBlockPropertiesInCommand(this, context.BuildingBlockContaining(_protein));
 }
Exemplo n.º 2
0
 public override void RestoreExecutionData(IExecutionContext context)
 {
     base.RestoreExecutionData(context);
     _protein = context.Get <PKSim.Core.Model.IndividualProtein>(_proteinId);
 }
Exemplo n.º 3
0
 protected override void ClearReferences()
 {
     _protein = null;
 }