BufferStatus.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: euc-jp -*-
00003 
00004 ##
00005 #
00006 # @file BufferStatus.py
00007 # @brief Buffer status enum definition
00008 # @date $Date: 2007-12-31 03:06:12 $
00009 # @author Noriaki Ando <n-ando@aist.go.jp> and Shinji Kurihara
00010 #
00011 # Copyright (C) 2009
00012 #     Noriaki Ando
00013 #     Task-intelligence Research Group,
00014 #     Intelligent Systems Research Institute,
00015 #     National Institute of
00016 #         Advanced Industrial Science and Technology (AIST), Japan
00017 #     All rights reserved.
00018 #
00019 
00020 
00021 class BufferStatus:
00022   """
00023   """
00024 
00025   BUFFER_OK            = 0
00026   BUFFER_ERROR         = 1
00027   BUFFER_FULL          = 2
00028   BUFFER_EMPTY         = 3
00029   NOT_SUPPORTED        = 4
00030   TIMEOUT              = 5
00031   PRECONDITION_NOT_MET = 6
00032 
00033   def toString(self, status):
00034     str = ["BUFFER_OK",
00035            "BUFFER_ERROR",
00036            "BUFFER_FULL",
00037            "BUFFER_EMPTY",
00038            "NOT_SUPPORTED",
00039            "TIMEOUT",
00040            "PRECONDITION_NOT_MET"]
00041     return str[status]


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:28