diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-25 08:10:13 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-25 08:10:13 +0000 |
| commit | c015d586d22b69078b6da61858e5675793856b0b (patch) | |
| tree | efbc9881cf59363abef52a0beb5eedf9e81a224a /sources/events/internal | |
| parent | 62fe28f0b0b0c9ebde18a6dc33907889ff3aa21b (diff) | |
JAutoDoc :)
Diffstat (limited to 'sources/events/internal')
| -rw-r--r-- | sources/events/internal/MessageReceiveEvent.java | 21 | ||||
| -rw-r--r-- | sources/events/internal/ProtocolEvent.java | 45 |
2 files changed, 66 insertions, 0 deletions
diff --git a/sources/events/internal/MessageReceiveEvent.java b/sources/events/internal/MessageReceiveEvent.java index b59c779..0b4af83 100644 --- a/sources/events/internal/MessageReceiveEvent.java +++ b/sources/events/internal/MessageReceiveEvent.java @@ -1,20 +1,41 @@ +/* + * VS is (c) 2008 by Paul C. Buetow + * vs@dev.buetow.org + */ package events.internal; import core.VSMessage; import events.VSEvent; import protocols.VSProtocol; +// TODO: Auto-generated Javadoc +/** + * The Class MessageReceiveEvent. + */ public class MessageReceiveEvent extends VSEvent { + + /** The message. */ private VSMessage message; + /** + * Instantiates a new message receive event. + * + * @param message the message + */ public MessageReceiveEvent(VSMessage message) { this.message = message; } + /* (non-Javadoc) + * @see events.VSEvent#onInit() + */ protected void onInit() { setClassname(getClass().toString()); } + /* (non-Javadoc) + * @see events.VSEvent#onStart() + */ public void onStart() { String eventName = message.getName(); String protocolClassname = message.getProtocolClassname(); diff --git a/sources/events/internal/ProtocolEvent.java b/sources/events/internal/ProtocolEvent.java index 0cece54..b29a828 100644 --- a/sources/events/internal/ProtocolEvent.java +++ b/sources/events/internal/ProtocolEvent.java @@ -1,37 +1,82 @@ +/* + * VS is (c) 2008 by Paul C. Buetow + * vs@dev.buetow.org + */ package events.internal; import events.*; import protocols.VSProtocol; +// TODO: Auto-generated Javadoc +/** + * The Class ProtocolEvent. + */ public class ProtocolEvent extends VSEvent { + + /** The protocol classname. */ private String protocolClassname; + + /** The is client protocol. */ private boolean isClientProtocol; /* true = client, false = server */ + + /** The is protocol activation. */ private boolean isProtocolActivation; /* true = activate, false = deactivate */ + /* (non-Javadoc) + * @see events.VSEvent#onInit() + */ protected void onInit() { setClassname(getClass().toString()); } + /** + * Checks if is client protocol. + * + * @param isClientProtocol the is client protocol + */ public void isClientProtocol(boolean isClientProtocol) { this.isClientProtocol = isClientProtocol; } + /** + * Checks if is client protocol. + * + * @return true, if is client protocol + */ public boolean isClientProtocol() { return isClientProtocol; } + /** + * Checks if is protocol activation. + * + * @param isProtocolActivation the is protocol activation + */ public void isProtocolActivation(boolean isProtocolActivation) { this.isProtocolActivation = isProtocolActivation; } + /** + * Checks if is protocol activation. + * + * @return true, if is protocol activation + */ public boolean isProtocolActivation() { return isProtocolActivation; } + /** + * Sets the protocol classname. + * + * @param protocolClassname the new protocol classname + */ public void setProtocolClassname(String protocolClassname) { this.protocolClassname = protocolClassname; } + /* (non-Javadoc) + * @see events.VSEvent#onStart() + */ public void onStart() { VSProtocol protocol = process.getProtocolObject(protocolClassname); |
