Adding initial Project to git
This commit is contained in:
18
BWR.core/Interfaces/IFluidConnectable.cs
Normal file
18
BWR.core/Interfaces/IFluidConnectable.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// MyBWRSimulator.Core/Interfaces/IFluidConnectable.cs
|
||||
namespace MyBWRSimulator.Core.Interfaces
|
||||
{
|
||||
using MyBWRSimulator.Core.Ports;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the contract for components that have fluid connections.
|
||||
/// </summary>
|
||||
public interface IFluidConnectable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a list of fluid ports associated with this component.
|
||||
/// </summary>
|
||||
/// <returns>A list of FluidPort objects.</returns>
|
||||
List<FluidPort> GetFluidPorts();
|
||||
}
|
||||
}
|
||||
15
BWR.core/Interfaces/ISimulatable.cs
Normal file
15
BWR.core/Interfaces/ISimulatable.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// MyBWRSimulator.Core/Interfaces/ISimulatable.cs
|
||||
namespace MyBWRSimulator.Core.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the contract for any object that can participate in the simulation's time-stepping.
|
||||
/// </summary>
|
||||
public interface ISimulatable
|
||||
{
|
||||
/// <summary>
|
||||
/// Updates the state of the object over a given time step.
|
||||
/// </summary>
|
||||
/// <param name="deltaTime">The time elapsed since the last update.</param>
|
||||
void Update(double deltaTime);
|
||||
}
|
||||
}
|
||||
18
BWR.core/Interfaces/IThermalConnectable.cs
Normal file
18
BWR.core/Interfaces/IThermalConnectable.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// MyBWRSimulator.Core/Interfaces/IThermalConnectable.cs
|
||||
namespace MyBWRSimulator.Core.Interfaces
|
||||
{
|
||||
using MyBWRSimulator.Core.Ports;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// Defines the contract for components that have Thermal connections.
|
||||
/// </summary>
|
||||
public interface IThermalConnectable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a list of Thermal ports associated with this component.
|
||||
/// </summary>
|
||||
/// <returns>A list of ThermalPort objects.</returns>
|
||||
List<ThermalPort> GetThermalPorts();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user