Class SetPoint
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.util.SetPoint
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface
SetPoint class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double(package private) static org.apache.logging.log4j.LoggerLogger object for class.(package private) doubleprivate static final longSerialization version UID.(package private) ProcessEquipmentInterfaceprivate Function<ProcessEquipmentInterface, Double> (package private) String(package private) String(package private) ProcessEquipmentInterface(package private) String(package private) String(package private) double(package private) StringFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionSetPoint()Deprecated.Constructor for SetPoint.SetPoint(String name, ProcessEquipmentInterface targetEquipment, String targetVariable, ProcessEquipmentInterface sourceEquipment) Constructor for SetPoint. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResult.static voidmain.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetSourceValueCalculator(Function<ProcessEquipmentInterface, Double> sourceValueCalculator) Setter for the fieldsourceValueCalculator.voidsetSourceVariable(ProcessEquipmentInterface adjustedEquipment) setSourceVariable.voidsetSourceVariable(ProcessEquipmentInterface adjustedEquipment, String adjstedVariable) setSourceVariable.voidsetTargetVariable(ProcessEquipmentInterface targetEquipment) Setter for the fieldtargetVariable.voidsetTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable) Setter for the fieldtargetVariable.voidsetTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit) Setter for the fieldtargetVariable.voidsetTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit, String targetPhase) Setter for the fieldtargetVariable.voidsetTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit, String targetPhase, String targetComponent) Setter for the fieldtargetVariable.Methods inherited from class ProcessEquipmentBaseClass
copy, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, getMassBalance, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, initMechanicalDesign, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, solved, toJson, toJsonMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getExergyChange, getFluid, getRestCapacity, needRecalculation, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
sourceEquipment
ProcessEquipmentInterface sourceEquipment -
targetEquipment
ProcessEquipmentInterface targetEquipment -
sourceVariable
String sourceVariable -
targetVariable
String targetVariable -
targetPhase
String targetPhase -
targetComponent
String targetComponent -
targetValue
double targetValue -
targetUnit
String targetUnit -
inputValue
double inputValue -
oldInputValue
double oldInputValue -
sourceValueCalculator
-
-
Constructor Details
-
SetPoint
-
SetPoint
-
SetPoint
public SetPoint(String name, ProcessEquipmentInterface targetEquipment, String targetVariable, ProcessEquipmentInterface sourceEquipment) Constructor for SetPoint.
- Parameters:
name- aStringobjecttargetEquipment- aProcessEquipmentInterfaceobjecttargetVariable- aStringobjectsourceEquipment- aProcessEquipmentInterfaceobject
-
-
Method Details
-
setSourceVariable
setSourceVariable.
- Parameters:
adjustedEquipment- aProcessEquipmentInterfaceobjectadjstedVariable- aStringobject
-
setSourceVariable
setSourceVariable.
- Parameters:
adjustedEquipment- aProcessEquipmentInterfaceobject
-
setTargetVariable
public void setTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit) Setter for the field
targetVariable.- Parameters:
targetEquipment- aProcessEquipmentInterfaceobjecttargetVariable- aStringobjecttargetValue- a doubletargetUnit- aStringobject
-
setTargetVariable
Setter for the field
targetVariable.- Parameters:
targetEquipment- aProcessEquipmentInterfaceobjecttargetVariable- aStringobject
-
setTargetVariable
Setter for the field
targetVariable.- Parameters:
targetEquipment- aProcessEquipmentInterfaceobject
-
setTargetVariable
public void setTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit, String targetPhase) Setter for the field
targetVariable.- Parameters:
targetEquipment- aProcessEquipmentInterfaceobjecttargetVariable- aStringobjecttargetValue- a doubletargetUnit- aStringobjecttargetPhase- aStringobject
-
setTargetVariable
public void setTargetVariable(ProcessEquipmentInterface targetEquipment, String targetVariable, double targetValue, String targetUnit, String targetPhase, String targetComponent) Setter for the field
targetVariable.- Parameters:
targetEquipment- aProcessEquipmentInterfaceobjecttargetVariable- aStringobjecttargetValue- a doubletargetUnit- aStringobjecttargetPhase- aStringobjecttargetComponent- aStringobject
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface- Overrides:
displayResultin classProcessEquipmentBaseClass
-
main
-
setSourceValueCalculator
public void setSourceValueCalculator(Function<ProcessEquipmentInterface, Double> sourceValueCalculator) Setter for the field
sourceValueCalculator.- Parameters:
sourceValueCalculator- aFunctionobject
-