Trees | Indices | Help |
---|
|
1 ################################################################################## 2 # Copyright (c) 2010, 2011, 2012, 2013, Daniel Urieli, Peter Stone 3 # University of Texas at Austin 4 # All right reserved 5 # 6 # Based On: 7 # 8 # Copyright (c) 2000-2003, Jelle Kok, University of Amsterdam 9 # All rights reserved. 10 # 11 # Redistribution and use in source and binary forms, with or without 12 # modification, are permitted provided that the following conditions are met: 13 # 14 # 1. Redistributions of source code must retain the above copyright notice, this 15 # list of conditions and the following disclaimer. 16 # 17 # 2. Redistributions in binary form must reproduce the above copyright notice, 18 # this list of conditions and the following disclaimer in the documentation 19 # and/or other materials provided with the distribution. 20 # 21 # 3. Neither the name of the University of Amsterdam nor the names of its 22 # contributors may be used to endorse or promote products derived from this 23 # software without specific prior written permission. 24 # 25 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 26 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 28 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 29 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 33 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 34 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 ################################################################################## 36 37 38 39 # 40 #class PerceptTypes: 41 # # TODO: values are ints for efficiency, change to other, safer types? 42 # COMPLETE_STATE = 0 43 # 44 # # NOTE: update the list to reflect the above members 45 # LEGAL_TYPES = [PerceptTypes.COMPLETE_STATE] 46 # 47 # 48 #class Percept: 49 # """ 50 # A general percept that a ship can generate, 51 # and an agent can receive. 52 # 53 # 54 # arguments: 55 # type - a percept type that should be in PerceptTypes 56 # data - a mapping between fields and values, specific to each percept type 57 # """ 58 # def __init__(self, type, data): 59 # if type not in PerceptTypes.LEGAL_TYPES: 60 # raise UnknownPerceptError(type) 61 # 62 # self.type = type 63 # self.data = data 64 65 ################################################## 66 # 67 # This file defines different percept classes. 68 # Each ship can use a subset of them. 69 # 70 # 71 # 72 # 73 # 74 # 75 ################################################## 7678 """ 79 A general percept that a ship can generate, 80 and an agent can receive. 81 It is a container that holds a list of different 82 percept objects. 83 """ 8692 93 9488 self.percepts.append(percept)8996 """ 97 A percept that senses the full, complete, state. 98 This is an instance of a specific percept that is appended 99 inside the class of PerceptList, however it doesn't yet 100 inherit from any base "Percept" class because the interface 101 of such class is not finalized yet. Once more percepts are 102 introduced, this class might be revised. 103 """106
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Nov 14 13:01:28 2013 | http://epydoc.sourceforge.net |