RuntimeLanguageProcessor Module

module~~runtimelanguageprocessor~~UsesGraph module~runtimelanguageprocessor RuntimeLanguageProcessor module~dataruntimelanguage DataRuntimeLanguage module~dataruntimelanguage->module~runtimelanguageprocessor module~dataglobals DataGlobals module~dataglobals->module~runtimelanguageprocessor module~dataglobals->module~dataruntimelanguage module~dataprecisionglobals DataPrecisionGlobals module~dataprecisionglobals->module~runtimelanguageprocessor module~dataprecisionglobals->module~dataruntimelanguage module~dataprecisionglobals->module~dataglobals
Help

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Used By

module~~runtimelanguageprocessor~~UsedByGraph module~runtimelanguageprocessor RuntimeLanguageProcessor proc~reportems ReportEMS module~runtimelanguageprocessor->proc~reportems proc~processemsinput ProcessEMSInput module~runtimelanguageprocessor->proc~processemsinput proc~manageems ManageEMS module~runtimelanguageprocessor->proc~manageems proc~initems InitEMS module~runtimelanguageprocessor->proc~initems proc~getemsinput GetEMSInput module~runtimelanguageprocessor->proc~getemsinput proc~getvariabletypeandindex GetVariableTypeAndIndex module~runtimelanguageprocessor->proc~getvariabletypeandindex
Help


Variables

TypeVisibility AttributesNameInitial
integer, public, parameter:: MaxErrors =20
integer, private, parameter:: KeywordNone =0
integer, private, parameter:: KeywordReturn =1
integer, private, parameter:: KeywordGoto =2
integer, private, parameter:: KeywordSet =3
integer, private, parameter:: KeywordRun =4
integer, private, parameter:: KeywordIf =5
integer, private, parameter:: KeywordElseIf =6
integer, private, parameter:: KeywordElse =7
integer, private, parameter:: KeywordEndIf =8
integer, private, parameter:: KeywordWhile =9
integer, private, parameter:: KeywordEndWhile =10
integer, private, parameter:: TokenNumber =1
integer, private, parameter:: TokenVariable =4
integer, private, parameter:: TokenExpression =5
integer, private, parameter:: TokenOperator =7
integer, private, parameter:: TokenParenthesis =9
integer, private, parameter:: ParenthesisLeft =10
integer, private, parameter:: ParenthesisRight =11
type(RuntimeReportVarType), private, DIMENSION(:), ALLOCATABLE:: RuntimeReportVar
logical, private :: GetInput =.TRUE.
logical, private :: InitializeOnce =.TRUE.
logical, private :: MyEnvrnFlag =.TRUE.
integer, private :: NullVariableNum =0
integer, private :: FalseVariableNum =0
integer, private :: TrueVariableNum =0
integer, private :: OffVariableNum =0
integer, private :: OnVariableNum =0
integer, private :: PiVariableNum =0
integer, private, DIMENSION(:), ALLOCATABLE:: CurveIndexVariableNums
integer, private, DIMENSION(:), ALLOCATABLE:: ConstructionIndexVariableNums
integer, private :: YearVariableNum =0
integer, private :: MonthVariableNum =0
integer, private :: DayOfMonthVariableNum =0
integer, private :: DayOfWeekVariableNum =0
integer, private :: DayOfYearVariableNum =0
integer, private :: HourVariableNum =0
integer, private :: MinuteVariableNum =0
integer, private :: HolidayVariableNum =0
integer, private :: DSTVariableNum =0
integer, private :: CurrentTimeVariableNum =0
integer, private :: SunIsUpVariableNum =0
integer, private :: IsRainingVariableNum =0
integer, private :: SystemTimeStepVariableNum =0
integer, private :: ZoneTimeStepVariableNum =0
integer, private :: CurrentEnvironmentPeriodNum =0
integer, private :: ActualDateAndTimeNum =0
integer, private :: ActualTimeNum =0

Derived Types

type, private :: TokenType

Components

TypeVisibility AttributesNameInitial
integer, public :: Type =0
real(kind=r64), public :: Number =0.0D0
character(len=2*MaxNameLength), public :: String =''
integer, public :: Operator =0
integer, public :: Variable =0
integer, public :: Parenthesis =0
integer, public :: Expression =0
character(len=2*MaxNameLength), public :: Error =''

type, private :: RuntimeReportVarType

Components

TypeVisibility AttributesNameInitial
character(len=MaxNameLength), public :: Name =''
integer, public :: VariableNum =0
real(kind=r64), public :: Value =0.0D0

Functions

private function AddInstruction(StackNum, LineNum, Keyword, Argument1, Argument2) result(InstructionNum)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: StackNum
integer, intent(in) :: LineNum
integer, intent(in) :: Keyword
integer, intent(in), optional :: Argument1
integer, intent(in), optional :: Argument2

Return Value integer

public recursive function EvaluateStack(StackNum) result(ReturnValue)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: StackNum

Return Value type(ErlValueType)

private recursive function ProcessTokens(TokenIN, NumTokensIN, StackNum, ParsingString) result(ExpressionNum)

Arguments

Type IntentOptional AttributesName
type(TokenType), intent(in), DIMENSION(:):: TokenIN
integer, intent(in) :: NumTokensIN
integer, intent(in) :: StackNum
character(len=*), intent(in) :: ParsingString

Return Value integer

private function NewExpression() result(ExpressionNum)

Arguments

None

Return Value integer

private recursive function EvaluateExpression(ExpressionNum) result(ReturnValue)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: ExpressionNum

Return Value type(ErlValueType)

private function IntegerToString(Number) result(String)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: Number

Return Value character(len=25)

public function SetErlValueNumber(Number, OrigValue) result(newValue)

Arguments

Type IntentOptional AttributesName
real(kind=r64), intent(in) :: Number
type(ErlValueType), intent(in), optional :: OrigValue

Return Value type(ErlValueType)

private function StringValue(String) result(Value)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: String

Return Value type(ErlValueType)

private function ValueToString(Value) result(String)

Arguments

Type IntentOptional AttributesName
type(ErlValueType), intent(in) :: Value

Return Value character(len=200)

public function FindEMSVariable(VariableName, StackNum) result(VariableNum)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: VariableName
integer, intent(in) :: StackNum

Return Value integer

public function NewEMSVariable(VariableName, StackNum, Value) result(VariableNum)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: VariableName
integer, intent(in) :: StackNum
type(ErlValueType), intent(in), optional :: Value

Return Value integer

public function isExternalInterfaceErlVariable(varNum) result(isExternalInterfaceVar)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: varNum

Return Value logical


Subroutines

public subroutine InitializeRuntimeLanguage()

Arguments

None

Arguments

None

private subroutine ParseStack(StackNum)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: StackNum

private subroutine AddError(StackNum, LineNum, Error)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: StackNum
integer, intent(in) :: LineNum
character(len=*), intent(in) :: Error

private subroutine WriteTrace(StackNum, InstructionNum, ReturnValue)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: StackNum
integer, intent(in) :: InstructionNum
type(ErlValueType), intent(in) :: ReturnValue

private subroutine ParseExpression(InString, StackNum, ExpressionNum, Line)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: InString
integer, intent(in) :: StackNum
integer, intent(out) :: ExpressionNum
character(len=*), intent(in) :: Line

private subroutine GetRuntimeLanguageUserInput()

Arguments

None

public subroutine ReportRuntimeLanguage()

Arguments

None

private subroutine SetupPossibleOperators()

Arguments

None

public subroutine ExternalInterfaceSetErlVariable(varNum, value)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: varNum
real(kind=r64), intent(in) :: value

public subroutine ExternalInterfaceInitializeErlVariable(varNum, initialValue, setToNull)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: varNum
type(ErlValueType), intent(in) :: initialValue
logical, intent(in) :: setToNull


AirflowNetworkBalanceManager AirflowNetworkSolver BaseboardElectric BaseboardRadiator Boilers BoilerSteam BranchInputManager BranchNodeConnections ChillerAbsorption ChillerElectricEIR ChillerExhaustAbsorption ChillerGasAbsorption ChillerIndirectAbsorption ChillerReformulatedEIR CondenserLoopTowers ConductionTransferFunctionCalc ConvectionCoefficients CoolTower CostEstimateManager CrossVentMgr CTElectricGenerator CurveManager DataAirflowNetwork DataAirLoop DataAirSystems DataBranchAirLoopPlant DataBranchNodeConnections DataBSDFWindow DataComplexFenestration DataContaminantBalance DataConvergParams DataConversions DataCostEstimate DataDaylighting DataDaylightingDevices DataDefineEquip DataDElight DataEnvironment DataErrorTracking DataGenerators DataGlobalConstants DataGlobals DataHeatBalance DataHeatBalFanSys DataHeatBalSurface DataHVACControllers DataHVACGlobals DataInterfaces DataIPShortCuts DataLoopNode DataMoistureBalance DataMoistureBalanceEMPD DataOutputs DataPhotovoltaics DataPlant DataPlantPipingSystems DataPrecisionGlobals DataReportingFlags DataRoomAirModel DataRootFinder DataRuntimeLanguage DataShadowingCombinations DataSizing DataStringGlobals DataSurfaceColors DataSurfaceLists DataSurfaces DataSystemVariables DataTimings DataUCSDSharedData DataVectorTypes DataViewFactorInformation DataWater DataWindowEquivalentLayer DataZoneControls DataZoneEnergyDemands DataZoneEquipment DaylightingDevices DaylightingManager DELIGHTMANAGERF DELIGHTMANAGERF DemandManager DesiccantDehumidifiers DirectAirManager DisplacementVentMgr DualDuct DXCoils DXFEarClipping EarthTube EconomicLifeCycleCost EconomicTariff EcoRoofManager ElectricBaseboardRadiator EMSManager EvaporativeCoolers EvaporativeFluidCoolers ExteriorEnergyUse ExternalInterface FanCoilUnits Fans FaultsManager FluidCoolers FluidProperties FuelCellElectricGenerator Furnaces General GeneratorDynamicsManager GeneratorFuelSupply GlobalNames GroundHeatExchangers HeatBalanceAirManager HeatBalanceHAMTManager HeatBalanceIntRadExchange HeatBalanceManager HeatBalanceMovableInsulation HeatBalanceSurfaceManager HeatBalFiniteDiffManager HeatingCoils HeatPumpWaterToWaterCOOLING HeatPumpWaterToWaterHEATING HeatPumpWaterToWaterSimple HeatRecovery HighTempRadiantSystem Humidifiers HVACControllers HVACCooledBeam HVACDuct HVACDXHeatPumpSystem HVACDXSystem HVACHXAssistedCoolingCoil HVACInterfaceManager HVACManager HVACMultiSpeedHeatPump HVACSingleDuctInduc HVACStandAloneERV HVACUnitaryBypassVAV HVACUnitarySystem HVACVariableRefrigerantFlow HWBaseboardRadiator ICEngineElectricGenerator IceThermalStorage InputProcessor InternalHeatGains ISO_C_FUNCTION_BINDING ISO_C_FUNCTION_BINDING LowTempRadiantSystem ManageElectricPower MatrixDataManager MicroCHPElectricGenerator MicroturbineElectricGenerator MixedAir MixerComponent MoistureBalanceEMPDManager MundtSimMgr NodeInputManager NonZoneEquipmentManager OutAirNodeManager OutdoorAirUnit OutputProcessor OutputReportPredefined OutputReportTabular OutsideEnergySources PackagedTerminalHeatPump PackagedThermalStorageCoil Photovoltaics PhotovoltaicThermalCollectors PipeHeatTransfer Pipes PlantCentralGSHP PlantChillers PlantComponentTemperatureSources PlantCondLoopOperation PlantHeatExchangerFluidToFluid PlantLoadProfile PlantLoopEquip PlantLoopSolver PlantManager PlantPipingSystemsManager PlantPressureSystem PlantUtilities PlantValves PollutionModule PondGroundHeatExchanger PoweredInductionUnits Psychrometrics Pumps PurchasedAirManager RefrigeratedCase ReportSizingManager ReturnAirPathManager RoomAirModelManager RoomAirModelUserTempPattern RootFinder RuntimeLanguageProcessor ScheduleManager SetPointManager SimAirServingZones SimulationManager SingleDuct SizingManager SolarCollectors SolarReflectionManager SolarShading SortAndStringUtilities SplitterComponent SQLiteProcedures SQLiteProcedures StandardRatings SteamBaseboardRadiator SteamCoils SurfaceGeometry SurfaceGroundHeatExchanger SystemAvailabilityManager SystemReports TARCOGArgs TARCOGCommon TARCOGDeflection TARCOGGasses90 TARCOGGassesParams TARCOGMain TARCOGOutput TARCOGParams TarcogShading ThermalChimney ThermalComfort ThermalEN673Calc ThermalISO15099Calc TranspiredCollector UFADManager UnitHeater UnitVentilator UserDefinedComponents VariableSpeedCoils vectors VentilatedSlab WaterCoils WaterManager WaterThermalTanks WatertoAirHeatPump WatertoAirHeatPumpSimple WaterUse WeatherManager WindowAC WindowComplexManager WindowEquivalentLayer WindowManager WindTurbine ZoneAirLoopEquipmentManager ZoneContaminantPredictorCorrector ZoneDehumidifier ZoneEquipmentManager ZonePlenum ZoneTempPredictorCorrector