Project: engagement_generation License: BSD Dependencies:
Used by:
None |
engagement_generation/msg_gen/java/ros/pkg/bml_msgs/msg/BMLException.javaGo to the documentation of this file.00001 /* Auto-generated by genmsg_java.py for file /home/mel/workspace/ros_stacks/bml/bml_msgs/msg/BMLException.msg */ 00002 00003 package ros.pkg.bml_msgs.msg; 00004 00005 import java.nio.ByteBuffer; 00006 00007 public class BMLException extends ros.communication.Message { 00008 00009 public ros.pkg.bml_msgs.msg.Behavior behavior = new ros.pkg.bml_msgs.msg.Behavior(); 00010 public ros.pkg.bml_msgs.msg.Flag status = new ros.pkg.bml_msgs.msg.Flag(); 00011 public java.lang.String reason = new java.lang.String(); 00012 00013 public BMLException() { 00014 } 00015 00016 public static java.lang.String __s_getDataType() { return "bml_msgs/BMLException"; } 00017 public java.lang.String getDataType() { return __s_getDataType(); } 00018 public static java.lang.String __s_getMD5Sum() { return "9e9844a24d59068fd8459186780521a1"; } 00019 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00020 public static java.lang.String __s_getMessageDefinition() { return "# fields for when an exception occurs, normally scheduling problems\n" + 00021 "Behavior behavior\n" + 00022 "Flag status\n" + 00023 "string reason\n" + 00024 "\n" + 00025 "================================================================================\n" + 00026 "MSG: bml_msgs/Behavior\n" + 00027 "# this message type contains the information for basic behavior types\n" + 00028 "\n" + 00029 "#constants for the synch point\n" + 00030 "uint8 START=0\n" + 00031 "uint8 READY=1\n" + 00032 "uint8 STROKE_START=2\n" + 00033 "uint8 STROKE=3\n" + 00034 "uint8 STROKE_END=4\n" + 00035 "uint8 RELAX=5\n" + 00036 "uint8 END=6\n" + 00037 "\n" + 00038 "# the fields\n" + 00039 "string id\n" + 00040 "uint8 synchPoint\n" + 00041 "\n" + 00042 "================================================================================\n" + 00043 "MSG: bml_msgs/Flag\n" + 00044 "# A flag which determines between TRUE and FALSE\n" + 00045 "int8 value\n" + 00046 "\n" + 00047 "# Constant for an invalid value\n" + 00048 "int8 INVALID=-1\n" + 00049 "\n" + 00050 "# Constants which define the values for true\n" + 00051 "int8 TRUE=1\n" + 00052 "int8 START=1\n" + 00053 "int8 BEGIN=1\n" + 00054 "int8 SUCCESS=1\n" + 00055 "int8 DONE=1\n" + 00056 "\n" + 00057 "# Constants which define the values for false\n" + 00058 "int8 FALSE=0\n" + 00059 "int8 STOP=0\n" + 00060 "int8 END=0\n" + 00061 "int8 FAILURE=0\n" + 00062 "int8 NOT_DONE=0\n" + 00063 "\n" + 00064 "# Constants for response types\n" + 00065 "int8 OPTIONAL_RESPONSE=0\n" + 00066 "int8 IS_A_RESPONSE=1\n" + 00067 "int8 REQUIRES_RESPONSE=2\n" + 00068 "int8 BACKCHANNEL=3\n" + 00069 "\n" + 00070 "# Constants which define the values for the side to use\n" + 00071 "int8 NEITHER=0\n" + 00072 "int8 LEFT=1\n" + 00073 "int8 RIGHT=2\n" + 00074 "int8 EITHER=3\n" + 00075 "\n" + 00076 ""; } 00077 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00078 00079 public BMLException clone() { 00080 BMLException c = new BMLException(); 00081 c.deserialize(serialize(0)); 00082 return c; 00083 } 00084 00085 public void setTo(ros.communication.Message m) { 00086 deserialize(m.serialize(0)); 00087 } 00088 00089 public int serializationLength() { 00090 int __l = 0; 00091 __l += behavior.serializationLength(); 00092 __l += status.serializationLength(); 00093 __l += 4 + reason.length(); 00094 return __l; 00095 } 00096 00097 public void serialize(ByteBuffer bb, int seq) { 00098 behavior.serialize(bb, seq); 00099 status.serialize(bb, seq); 00100 Serialization.writeString(bb, reason); 00101 } 00102 00103 public void deserialize(ByteBuffer bb) { 00104 behavior.deserialize(bb); 00105 status.deserialize(bb); 00106 reason = Serialization.readString(bb); 00107 } 00108 00109 @SuppressWarnings("all") 00110 public boolean equals(Object o) { 00111 if(!(o instanceof BMLException)) 00112 return false; 00113 BMLException other = (BMLException) o; 00114 return 00115 behavior.equals(other.behavior) && 00116 status.equals(other.status) && 00117 reason.equals(other.reason) && 00118 true; 00119 } 00120 00121 @SuppressWarnings("all") 00122 public int hashCode() { 00123 final int prime = 31; 00124 int result = 1; 00125 long tmp; 00126 result = prime * result + (this.behavior == null ? 0 : this.behavior.hashCode()); 00127 result = prime * result + (this.status == null ? 0 : this.status.hashCode()); 00128 result = prime * result + (this.reason == null ? 0 : this.reason.hashCode()); 00129 return result; 00130 } 00131 } // class BMLException 00132 |