00001 /* Auto-generated by genmsg_cpp for file /tmp/buildd/ros-diamondback-knowrob-0.2.0/debian/ros-diamondback-knowrob/opt/ros/diamondback/stacks/knowrob/json_prolog/srv/PrologNextSolution.srv */ 00002 00003 package ros.pkg.json_prolog.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class PrologNextSolution extends ros.communication.Service<PrologNextSolution.Request, PrologNextSolution.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "json_prolog/PrologNextSolution"; } 00011 public static java.lang.String __s_getMD5Sum() { return "b101f472df7bcb78cc53cd5a17ecbda9"; } 00012 00013 public java.lang.String getDataType() { return PrologNextSolution.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return PrologNextSolution.__s_getMD5Sum(); } 00015 00016 public PrologNextSolution.Request createRequest() { 00017 return new PrologNextSolution.Request(); 00018 } 00019 00020 public PrologNextSolution.Response createResponse() { 00021 return new PrologNextSolution.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 public java.lang.String id = new java.lang.String(); 00027 00028 public Request() { 00029 } 00030 00031 public static java.lang.String __s_getDataType() { return "json_prolog/PrologNextSolutionRequest"; } 00032 public java.lang.String getDataType() { return __s_getDataType(); } 00033 public static java.lang.String __s_getMD5Sum() { return "bbfcda76036ebbe3d36caf7af80b260c"; } 00034 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00035 public static java.lang.String __s_getServerMD5Sum() { return "b101f472df7bcb78cc53cd5a17ecbda9"; } 00036 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00037 public static java.lang.String __s_getMessageDefinition() { return "string id\n" + 00038 "\n" + 00039 ""; } 00040 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00041 00042 public Request clone() { 00043 Request c = new Request(); 00044 c.deserialize(serialize(0)); 00045 return c; 00046 } 00047 00048 public void setTo(ros.communication.Message m) { 00049 deserialize(m.serialize(0)); 00050 } 00051 00052 public int serializationLength() { 00053 int __l = 0; 00054 __l += 4 + id.length(); 00055 return __l; 00056 } 00057 00058 public void serialize(ByteBuffer bb, int seq) { 00059 Serialization.writeString(bb, id); 00060 } 00061 00062 public void deserialize(ByteBuffer bb) { 00063 id = Serialization.readString(bb); 00064 } 00065 00066 @SuppressWarnings("all") 00067 public boolean equals(Object o) { 00068 if(!(o instanceof Request)) 00069 return false; 00070 Request other = (Request) o; 00071 return 00072 id.equals(other.id) && 00073 true; 00074 } 00075 00076 @SuppressWarnings("all") 00077 public int hashCode() { 00078 final int prime = 31; 00079 int result = 1; 00080 long tmp; 00081 result = prime * result + (this.id == null ? 0 : this.id.hashCode()); 00082 return result; 00083 } 00084 } // class Request 00085 00086 static public class Response extends ros.communication.Message { 00087 static public final short NO_SOLUTION = 0; 00088 static public final short WRONG_ID = 1; 00089 static public final short QUERY_FAILED = 2; 00090 static public final short OK = 3; 00091 00092 public short status; 00093 public java.lang.String solution = new java.lang.String(); 00094 00095 public Response() { 00096 } 00097 00098 public static java.lang.String __s_getDataType() { return "json_prolog/PrologNextSolutionResponse"; } 00099 public java.lang.String getDataType() { return __s_getDataType(); } 00100 public static java.lang.String __s_getMD5Sum() { return "13aa54b7380a45414b5c48869ecbe7c8"; } 00101 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00102 public static java.lang.String __s_getServerMD5Sum() { return "b101f472df7bcb78cc53cd5a17ecbda9"; } 00103 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00104 public static java.lang.String __s_getMessageDefinition() { return "byte NO_SOLUTION = 0\n" + 00105 "byte WRONG_ID = 1\n" + 00106 "byte QUERY_FAILED = 2\n" + 00107 "byte OK = 3\n" + 00108 "\n" + 00109 "byte status\n" + 00110 "string solution\n" + 00111 "\n" + 00112 "\n" + 00113 ""; } 00114 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00115 00116 public Response clone() { 00117 Response c = new Response(); 00118 c.deserialize(serialize(0)); 00119 return c; 00120 } 00121 00122 public void setTo(ros.communication.Message m) { 00123 deserialize(m.serialize(0)); 00124 } 00125 00126 public int serializationLength() { 00127 int __l = 0; 00128 __l += 1; // status 00129 __l += 4 + solution.length(); 00130 return __l; 00131 } 00132 00133 public void serialize(ByteBuffer bb, int seq) { 00134 bb.put((byte)status); 00135 Serialization.writeString(bb, solution); 00136 } 00137 00138 public void deserialize(ByteBuffer bb) { 00139 status = (short)(bb.get() & 0xff); 00140 solution = Serialization.readString(bb); 00141 } 00142 00143 @SuppressWarnings("all") 00144 public boolean equals(Object o) { 00145 if(!(o instanceof Response)) 00146 return false; 00147 Response other = (Response) o; 00148 return 00149 status == other.status && 00150 solution.equals(other.solution) && 00151 true; 00152 } 00153 00154 @SuppressWarnings("all") 00155 public int hashCode() { 00156 final int prime = 31; 00157 int result = 1; 00158 long tmp; 00159 result = prime * result + this.status; 00160 result = prime * result + (this.solution == null ? 0 : this.solution.hashCode()); 00161 return result; 00162 } 00163 } // class Response 00164 00165 } //class 00166