Last change
on this file since 44 was
44,
checked in by stoda, 11 years ago
|
Objectmq converted to maven project
|
File size:
647 bytes
|
Rev | Line | |
---|
[44] | 1 | package exceptionTest; |
---|
| 2 | |
---|
| 3 | import omq.server.RemoteObject; |
---|
| 4 | |
---|
| 5 | public class OmqServerImpl extends RemoteObject implements ServerInterface { |
---|
| 6 | /** |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | private static final long serialVersionUID = 1L; |
---|
| 10 | private int numWheels; |
---|
| 11 | private int hp; |
---|
| 12 | private int price; |
---|
| 13 | |
---|
| 14 | @Override |
---|
| 15 | public void addWheels(int numWheels) { |
---|
| 16 | this.numWheels = numWheels; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | @Override |
---|
| 20 | public void addHp(int hp) { |
---|
| 21 | this.hp = hp; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | @Override |
---|
| 25 | public int getHp() { |
---|
| 26 | return hp; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | @Override |
---|
| 30 | public int getWheels() { |
---|
| 31 | return numWheels; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | @Override |
---|
| 35 | public void setPrice(int price) { |
---|
| 36 | this.price = price; |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | @Override |
---|
| 40 | public int getPrice() { |
---|
| 41 | return price; |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.