Changeset 131 for vtcross/branches/bhilburn/src
- Timestamp:
- 03/10/09 16:06:37 (15 years ago)
- Location:
- vtcross/branches/bhilburn/src
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/bhilburn/src/Makefile.am
r123 r131 1 1 SUBDIRS = policy_engines cognitive_engines service_management_layer libvtcross \ 2 shell tinyxml include2 tinyxml shell include -
vtcross/branches/bhilburn/src/shell/Makefile.am
r120 r131 1 INCLUDES = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/tinyxml 2 1 3 bin_PROGRAMS = shell_demo 2 4 3 5 shell_demo_SOURCES = cr_shell.cpp 6 shell_demo_LDADD = ../tinyxml/libtinyxml.a 7 shell_demo_LDFLAGS = -pthread 4 8 -
vtcross/branches/bhilburn/src/shell/cr_shell.cpp
r112 r131 5 5 #include <netinet/in.h> 6 6 #include <netdb.h> 7 #include "tinyxml.h"8 #include "tinystr.h"9 7 #include <arpa/inet.h> 10 8 #include <sys/mman.h> … … 15 13 //#include "socket/SocketException.h" 16 14 15 #include "vtcross/containers.h" 16 #include "tinyxml.h" 17 #include "tinystr.h" 18 17 19 using namespace std; 18 20 19 21 #define CE_SERVER_PORT 30001 20 22 #define POLICY_SERVER_PORT 30003 21 22 struct CE_Info {23 int numUtilities;24 int numParameters;25 int numObservables;26 int policy_engine;27 int policy_socket;28 int ce_socket;29 };30 31 struct Utility {32 string name;33 string units;34 string goal;35 float target;36 float value;37 };38 struct Affect {39 Utility * u;40 string relation;41 };42 struct Parameter {43 string name;44 string units;45 float min;46 int numAffects;47 Affect affection_list[10];48 float max;49 float step;50 float value;51 };52 53 struct Observable {54 string name;55 Affect affection_list[10];56 int numAffects;57 float value;58 };59 23 60 24 void DieWithError(char *errorMessage) -
vtcross/branches/bhilburn/src/tinyxml/Makefile.am
r120 r131 1 noinst_LIBRARIES = libtinyxml.a 2 libtinyxml_a_SOURCES = tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp