summaryrefslogtreecommitdiff
path: root/sources/events/internal/ProtocolScheduleEvent.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-28 22:11:57 +0000
committerPaul Buetow <paul@buetow.org>2008-05-28 22:11:57 +0000
commitca09c67e85acb0ab6c85c87f0dd0c05b35262b12 (patch)
treeada90495be58a1b508f9cc30c722735b58cb776d /sources/events/internal/ProtocolScheduleEvent.java
parent4d5a90f7191b6c175863d0375e9d1e17b2df39d4 (diff)
alle event classnames now have a VS prefix.
Diffstat (limited to 'sources/events/internal/ProtocolScheduleEvent.java')
-rw-r--r--sources/events/internal/ProtocolScheduleEvent.java85
1 files changed, 0 insertions, 85 deletions
diff --git a/sources/events/internal/ProtocolScheduleEvent.java b/sources/events/internal/ProtocolScheduleEvent.java
deleted file mode 100644
index bbb776c..0000000
--- a/sources/events/internal/ProtocolScheduleEvent.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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 server protocol schedule. */
- private boolean isServerSchedule; /* true = server, false = client */
-
- /** The reference to the protocol object to schedule. */
- private VSAbstractProtocol protocol;
-
- /**
- * Create a ProtocolScheduleEvent object
- *
- * @param protocol the protocol
- * @param isServerSchedule the event is a client protocol schedule if false, else server schedule
- */
- public ProtocolScheduleEvent(VSAbstractProtocol protocol, boolean isServerSchedule) {
- this.protocol = protocol;
- this.isServerSchedule = isServerSchedule;
- }
-
- /* (non-Javadoc)
- * @see events.VSAbstractEvent#onInit()
- */
- public void onInit() {
- setClassname(getClass().toString());
- }
-
- /**
- * Checks if is client protocol schedule.
- *
- * @param isServerSchedule the event is a client protocol schedule if false, else server schedule
- */
- public void isServerSchedule(boolean isServerSchedule) {
- this.isServerSchedule = isServerSchedule;
- }
-
- /**
- * Checks if is client protocol.
- *
- * @return false, if is client protocol schedule, else server protocol schedule
- */
- public boolean isServerSchedule() {
- return isServerSchedule;
- }
-
- /**
- * 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() {
- if (isServerSchedule)
- protocol.onServerScheduleStart();
- else
- protocol.onClientScheduleStart();
- }
-}