From 99ae411186cb049bfd55887b2c521bbf0e8bc2be Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 26 May 2008 19:25:07 +0000 Subject: renamed --- sources/events/internal/ProtocolScheduleEvent.java | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 sources/events/internal/ProtocolScheduleEvent.java (limited to 'sources/events/internal/ProtocolScheduleEvent.java') diff --git a/sources/events/internal/ProtocolScheduleEvent.java b/sources/events/internal/ProtocolScheduleEvent.java new file mode 100644 index 0000000..c5b7562 --- /dev/null +++ b/sources/events/internal/ProtocolScheduleEvent.java @@ -0,0 +1,70 @@ +/* + * VS is (c) 2008 by Paul C. Buetow + * vs@dev.buetow.org + */ +package events.internal; + +import events.*; +import protocols.VSAbstractProtocol; + +/** + * The Class ProtocolScheduleEvent. + */ +public class ProtocolScheduleEvent extends VSAbstractEvent { + private static final long serialVersionUID = 1L; + + /** The event is a client protocol schedule. */ + private boolean isClientSchedule; /* true = client, false = server */ + + /** The reference to the protocol object to schedule. */ + private VSAbstractProtocol protocol; + + /* (non-Javadoc) + * @see events.VSAbstractEvent#onInit() + */ + protected void onInit() { + setClassname(getClass().toString()); + } + + /** + * Checks if is client protocol schedule. + * + * @param isClientSchedule the event is a client protocol schedule if true, else server schedule + */ + public void isClientSchedule(boolean isClientSchedule) { + this.isClientSchedule = isClientSchedule; + } + + /** + * Checks if is client protocol. + * + * @return true, if is client protocol schedule, else server protocol schedule + */ + public boolean isClientSchedule() { + return isClientSchedule; + } + + /** + * Sets the protocol + * + * @param protocol the protocol + */ + public void setProtocol(VSAbstractProtocol protocol) { + this.protocol = protocol; + } + + /** + * Gets the protocol + * + * @return the protocol + */ + public VSAbstractProtocol getProtocol() { + return protocol; + } + + /* (non-Javadoc) + * @see events.VSAbstractEvent#onStart() + */ + public void onStart() { + } +} -- cgit v1.2.3