- Timestamp:
- 11/04/05 16:09:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt/src/org/modelica/mdt/internal/omcproxy/OMCProxy.java
r118 r120 23 23 private static boolean hasInitialized = false; 24 24 25 /* Reads in the OMC object reference from a file on disk. */ 25 /** 26 * Reads in the OMC object reference from a file on disk. 27 */ 26 28 private static String readObjectFromFile() throws InitializationException 27 29 { … … 78 80 } 79 81 80 /* Start a new OMC server. */ 82 /** 83 * Start a new OMC server. 84 * 85 * @throws InitializationException 86 */ 81 87 private static void startServer() throws InitializationException 82 88 { 83 89 String pathToOmc = null; 84 90 85 /* Path to omc (or omc.exe) can be found in the OPENMODELICAHOME 86 * variable. */ 91 /* 92 * Path to omc (or omc.exe) can be found in the OPENMODELICAHOME 93 * variable. 94 */ 87 95 String omHome = System.getenv("OPENMODELICAHOME"); 88 96 if(omHome == null) … … 101 109 } 102 110 103 /* Delete old object reference file. We need to do this because we're 111 /* 112 * Delete old object reference file. We need to do this because we're 104 113 * checking if the file exists to determine if the server has started 105 * or not (further down). */ 114 * or not (further down). 115 */ 106 116 File f = new File(getPathToObject()); 107 117 if(f.exists()) … … 140 150 } 141 151 142 /* Wait until the object exists on disk, but if it takes longer than 143 * 5 seconds, abort. (Very arbitrary 5 seconds..) */ 152 /* 153 * Wait until the object exists on disk, but if it takes longer than 154 * 5 seconds, abort. (Very arbitrary 5 seconds..) 155 */ 144 156 int ticks = 0; 145 157 while(!f.exists()) … … 164 176 } 165 177 166 /* Initializes an ORB, converts the stringified OMC object to a real 178 /** 179 * Initializes an ORB, converts the stringified OMC object to a real 167 180 * CORBA object, and then narrows that object to an OmcCommunication 168 * object. */ 181 * object. 182 */ 169 183 private static void setupOmcc(String stringifiedObjectReference) 170 184 throws InitializationException … … 184 198 } 185 199 186 /* Returns the name of the operating system. If an unknown os is found, 187 * the default is Linux. */ 200 /** 201 * @return the name of the operating system. If an unknown os is found, 202 * the default is Linux. 203 */ 188 204 private static String getOs() 189 205 { … … 257 273 } 258 274 259 /* Send expression to OMC. If communication is not initialized, it 275 /** 276 * Send expression to OMC. If communication is not initialized, it 260 277 * is initialized here. After initialization it loads the Modelica 261 * Standard Library. */ 278 * Standard Library. 279 */ 262 280 private static String sendExpression(String exp) throws InitializationException 263 281 {
Note: See TracChangeset
for help on using the changeset viewer.