refactoring (broken right now)
This commit is contained in:
19
Interfaces/IComponent.cs
Normal file
19
Interfaces/IComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FluidSim.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Minimal interface for all simulation components that have ports.
|
||||
/// </summary>
|
||||
public interface IComponent
|
||||
{
|
||||
/// <summary>All ports exposed by this component.</summary>
|
||||
IReadOnlyList<Port> Ports { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Called once per global time step to update the component's internal state
|
||||
/// using the port flow data accumulated during sub‑steps.
|
||||
/// </summary>
|
||||
void UpdateState(double dt);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user