Changeset 42
- Timestamp:
- 05/17/11 11:56:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/EventGenerator.java
r41 r42 400 400 if( loword!=null ) { 401 401 paramValue = loHiWord(genMsgChild); 402 generatedMessage.setLPARAM(paramValue); 402 403 } else { 403 404 try { … … 414 415 if( loword!=null ) { 415 416 paramValue = loHiWord(genMsgChild); 417 generatedMessage.setWPARAM(paramValue); 416 418 } else { 417 419 try { … … 727 729 String lowordStr = getTermValue(null, (Element) loword.getChildren().get(0)); 728 730 String hiwordStr = getTermValue(null, (Element) hiword.getChildren().get(0)); 729 return LOWORD(Integer.parseInt(lowordStr))+HIWORD(Integer.parseInt(hiwordStr));731 return MAKEPARAM(Integer.parseInt(lowordStr), Integer.parseInt(hiwordStr)); 730 732 } 731 733 732 private static short LOWORD(long data) { 733 return (short) (data & 0xffff); 734 } 735 736 private static short HIWORD(long data) { 737 return (short) (data >> 16); 734 private static long MAKEPARAM(int loword, int hiword) { 735 return loword| ((long) hiword) << 32; 738 736 } 739 737
Note: See TracChangeset
for help on using the changeset viewer.