Class BluetoothChannel

    • Field Detail

      • increaseRange

        public static boolean increaseRange
        True if the range should be increased.
    • Method Detail

      • valueChanged

        public void valueChanged​(Settable settable)
        React to the fact that the specified Settable has changed. This class registers as a listener to attributes that specify transmit properties. If those change, then it is necessary to invalidate the cache of receivers in range. This method simply invalidates the cache if it is called, so subclasses should be careful to not register as value listeners unnecessarily to objects that do not affect the validity of this cache.
        Specified by:
        valueChanged in interface ValueListener
        Overrides:
        valueChanged in class LimitedRangeChannel
        Parameters:
        settable - The object that has changed value.
      • isInBluetoothRange

        public boolean isInBluetoothRange()
      • _isInRange

        protected boolean _isInRange​(WirelessIOPort source,
                                     WirelessIOPort destination,
                                     RecordToken properties)
                              throws IllegalActionException
        Return true if the specified port is in range of the specified source port, assuming the source port transmits with the specified properties. If the properties are an instance of DoubleToken, then that token is assumed to be the range of the transmission. This method returns true if the distance between the source and the destination is less than or equal to the value of the properties. If the properties argument is not a DoubleToken, then it simply returns true.
        Overrides:
        _isInRange in class LimitedRangeChannel
        Parameters:
        source - The source port.
        destination - The destination port.
        properties - The range of transmission.
        Returns:
        True if the destination is in range of the source.
        Throws:
        IllegalActionException - If it cannot be determined whether the destination is in range (not thrown in this base class).