Add valve and actuator enum types#54
Draft
agarnhart wants to merge 2 commits intoProject-Haystack:masterfrom
Draft
Add valve and actuator enum types#54agarnhart wants to merge 2 commits intoProject-Haystack:masterfrom
agarnhart wants to merge 2 commits intoProject-Haystack:masterfrom
Conversation
Introduce Valve and Damper as abstract Equip bases for non-actuated equipment. ValveActuator and DamperActuator become intersection types (Actuator & Valve, Actuator & Damper). Adds *thermostatic global marker for feature layering on valves.
7 new Enum types for valve/actuator classification: ValveFunction (11 values), ValveBodyType, ValvePorts, ActuatorFailPosition, ActuatorDirection, ActuatorControlAction, ActuatorMechanism. Adds actuatorDirection slot on Actuator. ValveFunction scoped to piping role — pressureIndependent and thermostatic are feature markers, not function values.
This was referenced Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #53.
7 new Enum types for valve/actuator classification:
ValveFunction— piping role (11 values: isolation, control, balancing, bypass, check, mixing, diverting, pressureReducing, expansion, safety, relief). Scoped to single-select piping role —pressureIndependentandthermostaticare feature markers per Add Valve and Damper abstract base specs #53.ValveBodyType— physical construction (ball, butterfly, gate, globe, needle, plug)ValvePorts— port configuration (twoWay, threeWay, fourWay)ActuatorFailPosition— fail-safe mode (failOpen, failClosed, failInPlace, failToPosition)ActuatorDirection— signal mapping (directActing, reverseActing)ActuatorControlAction— control behavior (modulating, twoPosition, floating)ActuatorMechanism— drive type (electricMotor, pneumatic, hydraulic, solenoid)actuatorDirectionadded as a slot onActuator— it's the one classification that's an active input to control logic and belongs directly on the spec.Files:
ph/enums.xeto,ph/equip.xeto