Changeset 681 for trunk/quest-plugin-guitar/src/main/java/de/ugoe
- Timestamp:
- 08/29/12 10:05:50 (12 years ago)
- Location:
- trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/eventcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/eventcore/GUITAREventTarget.java
r556 r681 1 1 2 package de.ugoe.cs.quest.plugin.guitar.eventcore; 2 3 … … 15 16 16 17 private static final long serialVersionUID = 1L; 17 18 18 19 String widgetId; 19 20 20 21 public GUITAREventTarget(String widgetId) { 21 22 this.widgetId = widgetId; 22 23 } 23 24 24 /* (non-Javadoc) 25 /* 26 * (non-Javadoc) 27 * 25 28 * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform() 26 29 */ 27 30 @Override 28 31 public String getPlatform() { 29 // TODO Auto-generated method stub 30 System.out.println("TODO: implement GUITAREventTarget.getPlatform "); 31 return null; 32 return "GUITAR"; 32 33 } 33 34 35 @Override 36 public String getStringIdentifier() { 37 return this.toString(); 38 } 39 34 40 /* 35 41 * (non-Javadoc) 42 * 36 43 * @see java.lang.Object#toString() 37 44 */ … … 41 48 } 42 49 50 /* 51 * (non-Javadoc) 52 * 53 * @see java.lang.Object#equals(java.lang.Object) 54 */ 55 @Override 56 public boolean equals(Object obj) { 57 if (obj instanceof GUITAREventTarget) { 58 if (widgetId != null) { 59 return widgetId.equals(((GUITAREventTarget) obj).widgetId); 60 } 61 else { 62 return ((GUITAREventTarget) obj).widgetId == null; 63 } 64 } 65 return false; 66 } 67 68 /* 69 * (non-Javadoc) 70 * 71 * @see java.lang.Object#hashCode() 72 */ 73 @Override 74 public int hashCode() { 75 int hash = 13; 76 if (widgetId != null) { 77 hash = widgetId.hashCode(); 78 } 79 return hash; 80 } 81 43 82 } -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/eventcore/GUITAREventType.java
r556 r681 1 1 2 package de.ugoe.cs.quest.plugin.guitar.eventcore; 2 3 … … 16 17 /** */ 17 18 private static final long serialVersionUID = 1L; 18 19 19 20 String guitarEventId; 20 21 21 22 public GUITAREventType(String eventId) { 22 23 this.guitarEventId = eventId; 23 24 } 24 25 /* (non-Javadoc) 25 26 /* 27 * (non-Javadoc) 28 * 26 29 * @see de.ugoe.cs.quest.eventcore.IEventType#getName() 27 30 */ … … 30 33 return "GUITAREventType"; 31 34 } 32 35 33 36 /* 34 37 * (non-Javadoc) 38 * 35 39 * @see java.lang.Object#toString() 36 40 */ … … 40 44 } 41 45 46 /* 47 * (non-Javadoc) 48 * 49 * @see java.lang.Object#equals(java.lang.Object) 50 */ 51 @Override 52 public boolean equals(Object obj) { 53 if (obj instanceof GUITAREventType) { 54 if (guitarEventId != null) { 55 return guitarEventId.equals(((GUITAREventType) obj).guitarEventId); 56 } 57 else { 58 return ((GUITAREventType) obj).guitarEventId == null; 59 } 60 } 61 return false; 62 } 63 64 /* 65 * (non-Javadoc) 66 * 67 * @see java.lang.Object#hashCode() 68 */ 69 @Override 70 public int hashCode() { 71 int hash = 37; 72 if (guitarEventId != null) { 73 hash = guitarEventId.hashCode(); 74 } 75 return hash; 76 } 77 42 78 }
Note: See TracChangeset
for help on using the changeset viewer.