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/ProtocolEvent.java | |
| parent | 62fe28f0b0b0c9ebde18a6dc33907889ff3aa21b (diff) | |
JAutoDoc :)
Diffstat (limited to 'sources/events/internal/ProtocolEvent.java')
| -rw-r--r-- | sources/events/internal/ProtocolEvent.java | 45 |
1 files changed, 45 insertions, 0 deletions
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); |
