00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.cdl;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 public class ComponentDescription implements java.lang.Cloneable, java.io.Serializable
00027 {
00028 public String componentName;
00029
00030 public String className;
00031
00032 public ComponentLanguage language;
00033
00034 public String hostName;
00035
00036 public java.util.Map<java.lang.String, java.lang.String> configuration;
00037
00038 public boolean newProcess;
00039
00040 public ComponentDescription()
00041 {
00042 }
00043
00044 public ComponentDescription(String componentName, String className, ComponentLanguage language, String hostName, java.util.Map<java.lang.String, java.lang.String> configuration, boolean newProcess)
00045 {
00046 this.componentName = componentName;
00047 this.className = className;
00048 this.language = language;
00049 this.hostName = hostName;
00050 this.configuration = configuration;
00051 this.newProcess = newProcess;
00052 }
00053
00054 public boolean
00055 equals(java.lang.Object rhs)
00056 {
00057 if(this == rhs)
00058 {
00059 return true;
00060 }
00061 ComponentDescription _r = null;
00062 try
00063 {
00064 _r = (ComponentDescription)rhs;
00065 }
00066 catch(ClassCastException ex)
00067 {
00068 }
00069
00070 if(_r != null)
00071 {
00072 if(componentName != _r.componentName)
00073 {
00074 if(componentName == null || _r.componentName == null || !componentName.equals(_r.componentName))
00075 {
00076 return false;
00077 }
00078 }
00079 if(className != _r.className)
00080 {
00081 if(className == null || _r.className == null || !className.equals(_r.className))
00082 {
00083 return false;
00084 }
00085 }
00086 if(language != _r.language)
00087 {
00088 if(language == null || _r.language == null || !language.equals(_r.language))
00089 {
00090 return false;
00091 }
00092 }
00093 if(hostName != _r.hostName)
00094 {
00095 if(hostName == null || _r.hostName == null || !hostName.equals(_r.hostName))
00096 {
00097 return false;
00098 }
00099 }
00100 if(configuration != _r.configuration)
00101 {
00102 if(configuration == null || _r.configuration == null || !configuration.equals(_r.configuration))
00103 {
00104 return false;
00105 }
00106 }
00107 if(newProcess != _r.newProcess)
00108 {
00109 return false;
00110 }
00111
00112 return true;
00113 }
00114
00115 return false;
00116 }
00117
00118 public int
00119 hashCode()
00120 {
00121 int __h = 0;
00122 if(componentName != null)
00123 {
00124 __h = 5 * __h + componentName.hashCode();
00125 }
00126 if(className != null)
00127 {
00128 __h = 5 * __h + className.hashCode();
00129 }
00130 if(language != null)
00131 {
00132 __h = 5 * __h + language.hashCode();
00133 }
00134 if(hostName != null)
00135 {
00136 __h = 5 * __h + hostName.hashCode();
00137 }
00138 if(configuration != null)
00139 {
00140 __h = 5 * __h + configuration.hashCode();
00141 }
00142 __h = 5 * __h + (newProcess ? 1 : 0);
00143 return __h;
00144 }
00145
00146 public java.lang.Object
00147 clone()
00148 {
00149 java.lang.Object o = null;
00150 try
00151 {
00152 o = super.clone();
00153 }
00154 catch(CloneNotSupportedException ex)
00155 {
00156 assert false;
00157 }
00158 return o;
00159 }
00160
00161 public void
00162 __write(IceInternal.BasicStream __os)
00163 {
00164 __os.writeString(componentName);
00165 __os.writeString(className);
00166 language.__write(__os);
00167 __os.writeString(hostName);
00168 StringMapHelper.write(__os, configuration);
00169 __os.writeBool(newProcess);
00170 }
00171
00172 public void
00173 __read(IceInternal.BasicStream __is)
00174 {
00175 componentName = __is.readString();
00176 className = __is.readString();
00177 language = ComponentLanguage.__read(__is);
00178 hostName = __is.readString();
00179 configuration = StringMapHelper.read(__is);
00180 newProcess = __is.readBool();
00181 }
00182
00183 public void
00184 ice_write(Ice.OutputStream __outS)
00185 {
00186 __outS.writeString(componentName);
00187 __outS.writeString(className);
00188 language.ice_write(__outS);
00189 __outS.writeString(hostName);
00190 StringMapHelper.write(__outS, configuration);
00191 __outS.writeBool(newProcess);
00192 }
00193
00194 public void
00195 ice_read(Ice.InputStream __inS)
00196 {
00197 componentName = __inS.readString();
00198 className = __inS.readString();
00199 language = ComponentLanguage.ice_read(__inS);
00200 hostName = __inS.readString();
00201 configuration = StringMapHelper.read(__inS);
00202 newProcess = __inS.readBool();
00203 }
00204 }