Class StreamContract

java.lang.Object
neqsim.util.validation.contracts.StreamContract
All Implemented Interfaces:
ModuleContract<StreamInterface>

public class StreamContract extends Object implements ModuleContract<StreamInterface>
Contract for process streams.

Defines requirements and guarantees for StreamInterface implementations. AI agents can use this contract to validate stream setup before connecting to equipment.

Preconditions (what the stream needs):

  • Valid thermodynamic system attached
  • Flow rate > 0
  • Valid name for identification

Postconditions (what run() provides):

  • Calculated outlet conditions
  • Phase equilibrium (if flash performed)
  • Stream properties accessible via getFluid()
Version:
1.0
Author:
NeqSim