Class SimulationBaseClass
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
- All Implemented Interfaces:
Serializable, Runnable, SimulationInterface, NamedInterface
- Direct Known Subclasses:
ProcessEquipmentBaseClass, ProcessModule, ProcessModuleBaseClass, ProcessSystem
Base class for process simulation objects.
- Version:
- $Id: $Id
- Author:
- ASMF
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UUIDUnique identifier of which solve/run call was last called successfully.protected booleanprivate booleanprivate static final longSerialization version UID.protected doubleFields inherited from class NamedBaseClass
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGetter for property calculateSteadyState.Getter for property calcIdentifier.doublegetTime()Getter for the fieldtime.voidincreaseTime(double dt) Method to increase fieldtimeby a given value.booleanisRunInSteps.voidsetCalculateSteadyState(boolean steady) Setter for property calculateSteadyState.voidsetCalculationIdentifier(UUID value) Setter for property calcIdentifier.voidsetRunInSteps(boolean setRunSteps) setRunInSteps.voidsetTime(double value) Setter for fieldtime.Methods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface SimulationInterface
getReport_json, run, run, run_step, run_step, runTransient, runTransient, solved
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
calcIdentifier
Unique identifier of which solve/run call was last called successfully. -
calculateSteadyState
protected boolean calculateSteadyState -
time
protected double time -
runInSteps
private boolean runInSteps
-
-
Constructor Details
-
SimulationBaseClass
-
-
Method Details
-
getCalculationIdentifier
Getter for property calcIdentifier.- Specified by:
getCalculationIdentifierin interfaceSimulationInterface- Returns:
- Value of calcIdentifier.
-
setCalculationIdentifier
Setter for property calcIdentifier.- Specified by:
setCalculationIdentifierin interfaceSimulationInterface- Parameters:
value- Value to set.
-
getCalculateSteadyState
public boolean getCalculateSteadyState()Getter for property calculateSteadyState.- Specified by:
getCalculateSteadyStatein interfaceSimulationInterface- Returns:
- Value of property calculateSteadyState
-
setCalculateSteadyState
public void setCalculateSteadyState(boolean steady) Setter for property calculateSteadyState.- Specified by:
setCalculateSteadyStatein interfaceSimulationInterface- Parameters:
steady- Set true to do steady state calculation when calling runTransient.
-
getTime
public double getTime()Getter for the fieldtime.- Specified by:
getTimein interfaceSimulationInterface- Returns:
- Value of property time.
-
setTime
public void setTime(double value) Setter for fieldtime.- Specified by:
setTimein interfaceSimulationInterface- Parameters:
value- Value to set.
-
increaseTime
public void increaseTime(double dt) Method to increase fieldtimeby a given value.- Specified by:
increaseTimein interfaceSimulationInterface- Parameters:
dt- Value to increase time by.
-
setRunInSteps
public void setRunInSteps(boolean setRunSteps) setRunInSteps.
- Specified by:
setRunInStepsin interfaceSimulationInterface- Parameters:
setRunSteps- boolean set true to run in steps
-
isRunInSteps
public boolean isRunInSteps()isRunInSteps.
- Specified by:
isRunInStepsin interfaceSimulationInterface- Returns:
- boolean
-