00001 // Copyright (C) 200300002 // Gerhard Neumann (gneumann@gmx.net)00003 // Stephan Neumann (sneumann@gmx.net)00004 // 00005 // This file is part of RL Toolbox.00006 // http://www.igi.tugraz.at/ril_toolbox00007 //00008 // All rights reserved.00009 //00010 // Redistribution and use in source and binary forms, with or without00011 // modification, are permitted provided that the following conditions00012 // are met:00013 // 1. Redistributions of source code must retain the above copyright00014 // notice, this list of conditions and the following disclaimer.00015 // 2. Redistributions in binary form must reproduce the above copyright00016 // notice, this list of conditions and the following disclaimer in the00017 // documentation and/or other materials provided with the distribution.00018 // 3. The name of the author may not be used to endorse or promote products00019 // derived from this software without specific prior written permission.00020 //00021 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR00022 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES00023 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.00024 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,00025 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT00026 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,00027 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY00028 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT00029 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF00030 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.00031
00032 #ifndef C_MODELPROPERTIES_H00033 #define C_MODELPROPERTIES_H00034
00035
00036#define FEATURESTATE 100037#define DISCRETESTATE 200038#define STATEDERIVATIONX 400039#define FEATURESTATEDERIVATIONX 500040
00042
00060classCStateProperties00061 {
00062 protected:
00064unsignedintcontinuousStates;
00066unsignedintdiscreteStates;
00067
00069inttype;
00070
00072unsignedint *discreteStateSize;
00073
00075double *minValues;
00077double *maxValues;
00078
00079bool *isPeriodic;
00080
00081boolbInit;
00082
00083 CStateProperties();
00084
00085 virtualvoidinitProperties(unsignedintcontinuousStates, unsignedintdiscreteStates,inttype = 0);
00086 public:
00087
00089
00091 CStateProperties(unsignedintcontinuousStates, unsignedintdiscreteStates,inttype = 0);
00093 CStateProperties(CStateProperties *properties);
00094 virtual~CStateProperties();
00095
00096 intgetType();
00097 boolisType(inttype);
00098
00100
00104 voidaddType(int Type);
00105
00107 voidsetDiscreteStateSize(unsignedint dim, unsignedint size);
00109 virtualunsignedintgetDiscreteStateSize(unsignedint dim);
00110
00112 unsignedintgetNumContinuousStates();
00114 unsignedintgetNumDiscreteStates();
00115
00117 virtualunsignedintgetDiscreteStateSize();
00118
00120 voidsetMinValue(unsignedint dim, double value);
00122 doublegetMinValue(unsignedint dim);
00123
00125 voidsetMaxValue(unsignedint dim, double value);
00127 doublegetMaxValue(unsignedint dim);
00128
00129 voidsetPeriodicity(unsignedint index, boolisPeriodic);
00130 boolgetPeriodicity(unsignedint index);
00131
00132 doublegetMirroredStateValue(unsignedint index, double value);
00133 // double getSingleStateDifference(int index, double difference);00134
00136 boolequals(CStateProperties *object);
00137 };
00138
00139
00140
00141 #endif00142