Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 4fc0733a authored by Harald Martini's avatar Harald Martini
Browse files

added DataBusExtensionclass

parent eb2a2c7b
No related branches found
No related tags found
No related merge requests found
using System.Collections.Generic;
namespace TUGraz.VectoCore.Models.Simulation.DataBus
{
public static class DataBusExtensions
{
public static IList<IElectricMotorInfo> GetElectricMotors(this IDataBus db)
{
var result = new List<IElectricMotorInfo>();
foreach (var pos in db.PowertrainInfo.ElectricMotorPositions) {
result.Add(db.ElectricMotorInfo(pos));
}
return result;
}
}
}
\ No newline at end of file
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