|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcz.muni.fi.pb162.task2.AbstractMessaging
public abstract class AbstractMessaging
Class abstracts the common functionality of the lower classes (abstract medium for the transmission of messages)
| Constructor Summary | |
|---|---|
AbstractMessaging()
|
|
| Method Summary | |
|---|---|
abstract double |
deliveryTime()
Calculates approximate delivery time. |
Message |
getMessage()
|
void |
send()
Simulates message delivery. |
void |
setMessage(Message msg)
Sets the message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMessaging()
| Method Detail |
|---|
public abstract double deliveryTime()
deliveryTime in interface Messagingpublic Message getMessage()
getMessage in interface Messagingpublic void send()
send in interface Messagingpublic void setMessage(Message msg)
setMessage in interface Messagingmsg - Message for delivery
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||