Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 66ceff48 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

[Driver] set operating point property in response

parent d769f255
No related branches found
No related tags found
No related merge requests found
...@@ -214,6 +214,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -214,6 +214,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
retVal.Acceleration = operatingPoint.Acceleration; retVal.Acceleration = operatingPoint.Acceleration;
retVal.SimulationInterval = operatingPoint.SimulationInterval; retVal.SimulationInterval = operatingPoint.SimulationInterval;
retVal.OperatingPoint = operatingPoint;
return retVal; return retVal;
} }
...@@ -293,7 +294,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -293,7 +294,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Source = this, Source = this,
MaxDistance = searchedOperatingPoint.SimulationDistance, MaxDistance = searchedOperatingPoint.SimulationDistance,
Acceleration = searchedOperatingPoint.Acceleration, Acceleration = searchedOperatingPoint.Acceleration,
SimulationInterval = searchedOperatingPoint.SimulationInterval SimulationInterval = searchedOperatingPoint.SimulationInterval,
OperatingPoint = searchedOperatingPoint
}; };
return CurrentState.Response; return CurrentState.Response;
} }
...@@ -316,6 +318,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -316,6 +318,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
response.SimulationInterval = limitedOperatingPoint.SimulationInterval; response.SimulationInterval = limitedOperatingPoint.SimulationInterval;
response.Acceleration = limitedOperatingPoint.Acceleration; response.Acceleration = limitedOperatingPoint.Acceleration;
response.OperatingPoint = limitedOperatingPoint;
response.Switch(). response.Switch().
Case<ResponseSuccess>(). Case<ResponseSuccess>().
...@@ -403,6 +406,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -403,6 +406,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
CurrentState.Response = retVal; CurrentState.Response = retVal;
retVal.Acceleration = operatingPoint.Acceleration; retVal.Acceleration = operatingPoint.Acceleration;
retVal.SimulationInterval = operatingPoint.SimulationInterval; retVal.SimulationInterval = operatingPoint.SimulationInterval;
retVal.OperatingPoint = operatingPoint;
return retVal; return retVal;
} }
...@@ -445,6 +449,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -445,6 +449,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
CurrentState.Response = retVal; CurrentState.Response = retVal;
retVal.Acceleration = operatingPoint.Acceleration; retVal.Acceleration = operatingPoint.Acceleration;
retVal.SimulationInterval = operatingPoint.SimulationInterval; retVal.SimulationInterval = operatingPoint.SimulationInterval;
retVal.OperatingPoint = operatingPoint;
return retVal; return retVal;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment