Class

HydraulicValve

USI.Core

A named valve in a component-based hydraulic network.

public sealed class HydraulicValve : HydraulicIndexedComponent

Methods

TryGetActiveAsync

public Task<USIResult<Boolean>> TryGetActiveAsync()

Gets whether fluid is actively passing through the valve.

TryGetOpeningRatioAsync

public Task<USIResult<Double>> TryGetOpeningRatioAsync()

Gets achieved valve opening from closed to fully open.

TryGetTargetOpeningRatioAsync

public Task<USIResult<Double>> TryGetTargetOpeningRatioAsync()

Gets the valve's commanded opening from closed to fully open.

TrySetOpenAsync

public Task<USIResult> TrySetOpenAsync(bool open)

Requests the valve fully open or fully closed.

TrySetTargetOpeningRatioAsync

public Task<USIResult> TrySetTargetOpeningRatioAsync(double ratio)

Requests an absolute target opening. Success confirms accepted intent, not that the valve has reached the target.

TryToggleAsync

public Task<USIResult> TryToggleAsync()

Requests one toggle of the valve's selected open state.