versus.meeting
Class MeetingDetector

java.lang.Object
  |
  +--solar.service.dan.GraphNode
        |
        +--solar.service.dan.Filter
              |
              +--solar.service.dan.Operator
                    |
                    +--versus.meeting.MeetingDetector
All Implemented Interfaces:
DanConstants, Identifiable

public class MeetingDetector
extends Operator

A primitive operator that detects the ongoing meeting based on badges attached to chairs.

Version:
$Id: MeetingDetector.java,v 1.4 2003/09/19 00:38:32 glchen Exp $
Author:
Guanling Chen

Field Summary
(package private)  long[] _buffer
           
(package private)  boolean _meetingStarted
           
(package private)  java.util.Set _movingChairs
           
private  java.lang.String _room
           
(package private)  long _started
           
(package private)  boolean[] _status
           
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
MeetingDetector()
           
 
Method Summary
 void handleEvent(Event evt)
          Handle the event being actively pushed/published to this operator.
 java.lang.Object handleQuery(Request query)
          Handle the query being actively pulled by downstream operators.
 void init(serp.util.Options opts)
          Customized initialization derived from graph spec.
static void main(java.lang.String[] args)
           
 
Methods inherited from class solar.service.dan.GraphNode
getId, getInputPorts, getOutputPorts, handleEvent, handleQuery, init, publish, publish, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_room

private java.lang.String _room

_movingChairs

java.util.Set _movingChairs

_meetingStarted

boolean _meetingStarted

_started

long _started

_buffer

long[] _buffer

_status

boolean[] _status
Constructor Detail

MeetingDetector

public MeetingDetector()
Method Detail

init

public void init(serp.util.Options opts)
Description copied from class: GraphNode
Customized initialization derived from graph spec.

Overrides:
init in class GraphNode

handleQuery

public java.lang.Object handleQuery(Request query)
                             throws java.lang.Exception
Description copied from class: GraphNode
Handle the query being actively pulled by downstream operators.

Specified by:
handleQuery in class GraphNode
java.lang.Exception

handleEvent

public void handleEvent(Event evt)
                 throws java.lang.Exception
Description copied from class: GraphNode
Handle the event being actively pushed/published to this operator.

Specified by:
handleEvent in class GraphNode
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception