Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/srv_gen/java/ros/pkg/engagement_srvs/srv/ActorStatistics.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_cpp for file /home/mel/workspace/ros_stacks/engagement/engagement_srvs/srv/ActorStatistics.srv */ 00002 00003 package ros.pkg.engagement_srvs.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class ActorStatistics extends ros.communication.Service<ActorStatistics.Request, ActorStatistics.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "engagement_srvs/ActorStatistics"; } 00011 public static java.lang.String __s_getMD5Sum() { return "de111c623676ad55d51a5988d5833f1a"; } 00012 00013 public java.lang.String getDataType() { return ActorStatistics.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return ActorStatistics.__s_getMD5Sum(); } 00015 00016 public ActorStatistics.Request createRequest() { 00017 return new ActorStatistics.Request(); 00018 } 00019 00020 public ActorStatistics.Response createResponse() { 00021 return new ActorStatistics.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public ros.pkg.engagement_msgs.msg.ActorID actor = new ros.pkg.engagement_msgs.msg.ActorID(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "engagement_srvs/ActorStatisticsRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "b4e383113a12f607c76653c5e3d26ce7"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "de111c623676ad55d51a5988d5833f1a"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00038 "engagement_msgs/ActorID actor\n" + 00039 "\n" + 00040 "================================================================================\n" + 00041 "MSG: engagement_msgs/ActorID\n" + 00042 "# Unique string identifier for the actor\n" + 00043 "string id\n" + 00044 "\n" + 00045 "# Constant to identify the Robot as the actor\n" + 00046 "string ROBOT=ROBOT\n" + 00047 ""; } 00048 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00049 00050 public Request clone() { 00051 Request c = new Request(); 00052 c.deserialize(serialize(0)); 00053 return c; 00054 } 00055 00056 public void setTo(ros.communication.Message m) { 00057 deserialize(m.serialize(0)); 00058 } 00059 00060 public int serializationLength() { 00061 int __l = 0; 00062 __l += actor.serializationLength(); 00063 return __l; 00064 } 00065 00066 public void serialize(ByteBuffer bb, int seq) { 00067 actor.serialize(bb, seq); 00068 } 00069 00070 public void deserialize(ByteBuffer bb) { 00071 actor.deserialize(bb); 00072 } 00073 00074 @SuppressWarnings("all") 00075 public boolean equals(Object o) { 00076 if(!(o instanceof Request)) 00077 return false; 00078 Request other = (Request) o; 00079 return 00080 actor.equals(other.actor) && 00081 true; 00082 } 00083 00084 @SuppressWarnings("all") 00085 public int hashCode() { 00086 final int prime = 31; 00087 int result = 1; 00088 long tmp; 00089 result = prime * result + (this.actor == null ? 0 : this.actor.hashCode()); 00090 return result; 00091 } 00092 } // class Request 00093 00094 static public class Response extends ros.communication.Message { 00095 00096 public int mean_tbce; 00097 public int max_tbce; 00098 public int recent_mean_tbce; 00099 public int recent_max_tbce; 00100 public int mean_delay; 00101 public int max_delay; 00102 public int recent_mean_delay; 00103 public int recent_max_delay; 00104 public int failure_rate; 00105 public int recent_failure_rate; 00106 00107 public Response() { 00108 } 00109 00110 public static java.lang.String __s_getDataType() { return "engagement_srvs/ActorStatisticsResponse"; } 00111 public java.lang.String getDataType() { return __s_getDataType(); } 00112 public static java.lang.String __s_getMD5Sum() { return "cf6cfe5dd19e7281691c5ec7d1a0e824"; } 00113 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00114 public static java.lang.String __s_getServerMD5Sum() { return "de111c623676ad55d51a5988d5833f1a"; } 00115 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00116 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00117 "int32 mean_tbce\n" + 00118 "\n" + 00119 "int32 max_tbce\n" + 00120 "\n" + 00121 "int32 recent_mean_tbce\n" + 00122 "\n" + 00123 "int32 recent_max_tbce\n" + 00124 "\n" + 00125 "\n" + 00126 "int32 mean_delay\n" + 00127 "\n" + 00128 "int32 max_delay\n" + 00129 "\n" + 00130 "int32 recent_mean_delay\n" + 00131 "\n" + 00132 "int32 recent_max_delay\n" + 00133 "\n" + 00134 "\n" + 00135 "int32 failure_rate\n" + 00136 "\n" + 00137 "int32 recent_failure_rate\n" + 00138 "\n" + 00139 ""; } 00140 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00141 00142 public Response clone() { 00143 Response c = new Response(); 00144 c.deserialize(serialize(0)); 00145 return c; 00146 } 00147 00148 public void setTo(ros.communication.Message m) { 00149 deserialize(m.serialize(0)); 00150 } 00151 00152 public int serializationLength() { 00153 int __l = 0; 00154 __l += 4; // mean_tbce 00155 __l += 4; // max_tbce 00156 __l += 4; // recent_mean_tbce 00157 __l += 4; // recent_max_tbce 00158 __l += 4; // mean_delay 00159 __l += 4; // max_delay 00160 __l += 4; // recent_mean_delay 00161 __l += 4; // recent_max_delay 00162 __l += 4; // failure_rate 00163 __l += 4; // recent_failure_rate 00164 return __l; 00165 } 00166 00167 public void serialize(ByteBuffer bb, int seq) { 00168 bb.putInt(mean_tbce); 00169 bb.putInt(max_tbce); 00170 bb.putInt(recent_mean_tbce); 00171 bb.putInt(recent_max_tbce); 00172 bb.putInt(mean_delay); 00173 bb.putInt(max_delay); 00174 bb.putInt(recent_mean_delay); 00175 bb.putInt(recent_max_delay); 00176 bb.putInt(failure_rate); 00177 bb.putInt(recent_failure_rate); 00178 } 00179 00180 public void deserialize(ByteBuffer bb) { 00181 mean_tbce = bb.getInt(); 00182 max_tbce = bb.getInt(); 00183 recent_mean_tbce = bb.getInt(); 00184 recent_max_tbce = bb.getInt(); 00185 mean_delay = bb.getInt(); 00186 max_delay = bb.getInt(); 00187 recent_mean_delay = bb.getInt(); 00188 recent_max_delay = bb.getInt(); 00189 failure_rate = bb.getInt(); 00190 recent_failure_rate = bb.getInt(); 00191 } 00192 00193 @SuppressWarnings("all") 00194 public boolean equals(Object o) { 00195 if(!(o instanceof Response)) 00196 return false; 00197 Response other = (Response) o; 00198 return 00199 mean_tbce == other.mean_tbce && 00200 max_tbce == other.max_tbce && 00201 recent_mean_tbce == other.recent_mean_tbce && 00202 recent_max_tbce == other.recent_max_tbce && 00203 mean_delay == other.mean_delay && 00204 max_delay == other.max_delay && 00205 recent_mean_delay == other.recent_mean_delay && 00206 recent_max_delay == other.recent_max_delay && 00207 failure_rate == other.failure_rate && 00208 recent_failure_rate == other.recent_failure_rate && 00209 true; 00210 } 00211 00212 @SuppressWarnings("all") 00213 public int hashCode() { 00214 final int prime = 31; 00215 int result = 1; 00216 long tmp; 00217 result = prime * result + this.mean_tbce; 00218 result = prime * result + this.max_tbce; 00219 result = prime * result + this.recent_mean_tbce; 00220 result = prime * result + this.recent_max_tbce; 00221 result = prime * result + this.mean_delay; 00222 result = prime * result + this.max_delay; 00223 result = prime * result + this.recent_mean_delay; 00224 result = prime * result + this.recent_max_delay; 00225 result = prime * result + this.failure_rate; 00226 result = prime * result + this.recent_failure_rate; 00227 return result; 00228 } 00229 } // class Response 00230 00231 } //class 00232 |