#------------------------------------------------------------------------------
# GSML 0.1.4 - Example GSML messages.  Autogenerated with GsmlGen.java.
# Comments added by hand.
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Mercury Component Messages:
#       Common to all Mercury components.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <Die/>
</GSML>

<GSML SRC=source DST=destination >
        <Ping/>
</GSML>

<GSML SRC=source DST=destination >
        <GetState/>
</GSML>

<GSML SRC=source DST=destination >
        <Pong/>
</GSML>

#------------------------------------------------------------------------------
# SessionController:
#       GSML messages for the heart and brains of a session.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <UpdateRadio/>
</GSML>

<GSML SRC=source DST=destination >
        <UpdateAntenna/>
</GSML>

#------------------------------------------------------------------------------
# DriverRadio:
#       GSML message for controlling radio devices.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <EnableRadioAutoControl
                bool=boolean />
</GSML>

<GSML SRC=source DST=destination >
        <SetRadioUpdateInterval
                ms=int />
</GSML>

<GSML SRC=source DST=destination >
        <SetRadioState
                txFrequency=double
                txMode=string
                txPower=int
                rxFrequency=double
                rxMode=string
                squelch=int
                attenuation=int
                preampIsEnabled=boolean />
</GSML>

<GSML SRC=source DST=destination >
        <SetTxFrequency
                frequency=double />
</GSML>

<GSML SRC=source DST=destination >
        <SetTxMode
                mode=string />
</GSML>

<GSML SRC=source DST=destination >
        <SetTxPower
                level=int />
</GSML>

<GSML SRC=source DST=destination >
        <SetRxFrequency
                frequency=double />
</GSML>

<GSML SRC=source DST=destination >
        <SetRxMode
                mode=string />
</GSML>

<GSML SRC=source DST=destination >
        <SetSquelch
                level=int />
</GSML>

<GSML SRC=source DST=destination >
        <SetAttenuation
                level=int />
</GSML>

<GSML SRC=source DST=destination >
        <EnablePreamp
                bool=boolean />
</GSML>

#------------------------------------------------------------------------------
# DriverAntenna
#       GSML message for controlling antenna devices.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <EnableAntennaAutoControl
                bool=boolean />
</GSML>

<GSML SRC=source DST=destination >
        <SetAntennaUpdateInterval
                ms=int />
</GSML>

<GSML SRC=source DST=destination >
        <SetAntennaState
                azimuthAngle=double
                elevationAngle=double
                polarityDirection=string
                preampIsEnabled=boolean />
</GSML>

<GSML SRC=source DST=destination >
        <SetAzimuthAngle
                angle=double />
</GSML>

<GSML SRC=source DST=destination >
        <SetElevationAngle
                angle=double />
</GSML>

<GSML SRC=source DST=destination >
        <SetPolarityDirection
                direction=string />
</GSML>

#------------------------------------------------------------------------------
# DriverPower
#       GSML message for controlling power devices.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <SetPower
                componentId=string
                status=string />
</GSML>

#------------------------------------------------------------------------------
# Component State Messages
#       Responses to "GetState" queries.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <AntennaState
                autoControlIsEnabled=boolean
                updateInterval=int
                azimuthAngleLastSet=double
                elevationAngleLastSet=double
                polarityDirectionLastSet=string
                preampIsEnabledLastSet=boolean
                azimuthAngleActual=double
                elevationAngleActual=double
                polarityDirectionActual=string
                preampIsEnabledActual=boolean
                azimuthWindow=double
                elevationWindow=double />
</GSML>

<GSML SRC=source DST=destination >
        <RadioState
                autoControlIsEnabled=boolean
                updateInterval=int
                txFrequencyLastSet=double
                txModeLastSet=string
                txPowerLastSet=int
                rxFrequencyLastSet=double
                rxModeLastSet=string
                squelchLastSet=int
                attenuationLastSet=int
                preampIsEnabledLastSet=boolean
                txFrequencyActual=double
                txModeActual=string
                txPowerActual=int
                rxFrequencyActual=double
                rxModeActual=string
                squelchActual=int
                attenuationActual=int
                preampIsEnabledActual=boolean
                band=string
                duplexMode=string />
</GSML>

<GSML SRC=source DST=destination >
        <PowerState >
                <PowerSwitch componentIdentifier=string portNumber=int status=string   />
        </PowerState>
</GSML>

<GSML SRC=source DST=destination >
        <SessionControllerState
                satellite=string
                baseTxFrequency=double
                txMode=string
                baseRxFrequency=double
                rxMode=string
                longitude=double
                latitude=double
                range=double
                altitude=double
                velocity=double
                footprint=double
                orbitnum=long
                visibility=int
                time=long
                state=string
                keps=string
                azimuthAngle=double
                elevationAngle=double
                txFrequency=double
                rxFrequency=double
                doppler=double />
</GSML>

<GSML SRC=source DST=destination >
        <MsgServerState
                numClients=int />
</GSML>

#------------------------------------------------------------------------------
# Logger Messages
#       Log messages sent over GSML.
#------------------------------------------------------------------------------
<GSML SRC=source DST=destination >
        <LogText
                level=string
                time=long
                text=string />
</GSML>

<GSML SRC=source DST=destination >
        <LogPingAck
                level=string
                time=long
                delay=long
                component=string />
</GSML>

<GSML SRC=source DST=destination >
        <LogRuntimeState
                level=string
                time=long
                freeMem=int
                totalMem=int />
</GSML>

<GSML SRC=source DST=destination >
        <LogExecEvent
                level=string
                time=long
                type=string
                component=string />
</GSML>