예제 #1
0
    def setFreshnessPeriod(self, freshnessPeriod):
        """
        Set the freshness period.

        :param float freshnessPeriod: The freshness period in milliseconds, or
          None for not specified.
        """
        self._freshnessPeriod = Common.nonNegativeFloatOrNone(freshnessPeriod)
        self._changeCount += 1
예제 #2
0
    def setLatestPacketFreshnessPeriod(self, latestPacketFreshnessPeriod):
        """
        Set the freshness period to use for the produced _latest data packet.

        :param float latestPacketFreshnessPeriod: The freshness period in
          milliseconds.
        """
        self._latestPacketFreshnessPeriod = Common.nonNegativeFloatOrNone(
            latestPacketFreshnessPeriod)
예제 #3
0
파일: meta_info.py 프로젝트: pedosb/PyNDN2
    def setFreshnessPeriod(self, freshnessPeriod):
        """
        Set the freshness period.

        :param float freshnessPeriod: The freshness period in milliseconds, or
          None for not specified.
        """
        self._freshnessPeriod = Common.nonNegativeFloatOrNone(freshnessPeriod)
        self._changeCount += 1
예제 #4
0
    def setTimestamp(self, timestamp):
        """
        Set the time stamp.

        :param float timestamp: The time stamp.
        :return: This ContentMetaInfo so that you can chain calls to update
          values.
        :rtype: ContentMetaInfo
        """
        self._timestamp = Common.nonNegativeFloatOrNone(timestamp)
        return self
예제 #5
0
    def setInterestLifetimeMilliseconds(self, interestLifetimeMilliseconds):
        """
        Set the interest lifetime.

        :param float interestLifetimeMilliseconds: The interest lifetime in
          milliseconds. If not specified, set to None.
        :return: This Interest so that you can chain calls to update values.
        :rtype: Interest
        """
        self._interestLifetimeMilliseconds = Common.nonNegativeFloatOrNone(
            interestLifetimeMilliseconds)
        self._changeCount += 1
        return self
예제 #6
0
    def setInterestLifetimeMilliseconds(self, interestLifetimeMilliseconds):
        """
        Set the interest lifetime.

        :param float interestLifetimeMilliseconds: The interest lifetime in
          milliseconds. If not specified, set to None.
        :return: This Interest so that you can chain calls to update values.
        :rtype: Interest
        """
        self._interestLifetimeMilliseconds = Common.nonNegativeFloatOrNone(
          interestLifetimeMilliseconds)
        self._changeCount += 1
        return self