candy.conf
Class Meeting

java.lang.Object
  |
  +--candy.core.candyObject
        |
        +--candy.conf.Meeting
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable, Transcriptable
Direct Known Subclasses:
CodeWalkthrough

public class Meeting
extends candyObject
implements Transcriptable

The Meeting class is the master class for every type of Meeting in candy. It maintains a list of invited team members, active members.

See Also:
Serialized Form

Field Summary
(package private)  java.util.Vector activeData
          The active packets applicable to this meeting object during a run
static int CWT
           
(package private)  java.util.Vector membersHere
          Vector of members that are currently attending the meeting
 MeetingMeta meta
          Meta info for this meeting
(package private)  net.jini.core.transaction.server.TransactionManager mgr
           
(package private)  Chat myChat
          Regardless of the meeting type, each meeting has a chat associated with it.
(package private)  ClientApp myOwner
          my owner ...
(package private)  MeetingView myView
           
(package private)  Whiteboard myWB
          The Whiteboard which is tied to this meeting
static int REG
           
 java.util.Vector theData
          The entire stream of packets representing this meeting
(package private)  net.jini.space.JavaSpace theSpace
          some networking variables...
(package private)  CUserList theUserList
          the user list object of this meeting view
 java.lang.Integer transcriptIdx
          BELOW ARE THE METHODS FOR TRANSCRIPTABLE
 
Fields inherited from class candy.core.candyObject
description, handle, timestamp
 
Constructor Summary
Meeting()
          constructor for meeting
Meeting(MeetingMeta me, net.jini.space.JavaSpace s, ClientApp cl, net.jini.core.transaction.server.TransactionManager m)
           
Meeting(java.lang.String h, java.lang.String o, net.jini.space.JavaSpace s, ClientApp cl, net.jini.core.transaction.server.TransactionManager m)
          Meeting construction that is used in normal candy implementation
 
Method Summary
 void addMember(Member m)
           
 void addPacket(candy.core.packet.Packet p)
          add a packet to my stored vector of packets
 CandyView createViewForTranscript(javax.swing.JDesktopPane p, ClientApp a, java.lang.String s)
          A Factory procedure that returns a correct view for this Chat class
 void executePacket(candy.core.packet.Packet p)
           
 void executePTD()
          execute the PTD
 Chat getChat()
          get the chat for this meeting
 int getCurrent()
           
 java.lang.String getHandle()
          get that thar handle
 MeetingView getMeetingView()
           
 java.util.Vector getMembers()
           
 MeetingMeta getMeta()
          get the meta info
 int getTotal()
           
 Whiteboard getWhiteboard()
          get the wb for this meeting
 void initMeeting(net.jini.space.JavaSpace s, ClientApp cl, net.jini.core.transaction.server.TransactionManager m)
          initialize the meeting once it has been constructed ...
 void makeMeTemplate()
          make me a template to match and extract a copy of the meeting
 void newQuery(candy.core.packet.QueryPacket packet)
          Add a new question to this meeting's list of query's
 boolean nextForTranscript()
           
 void removeMember(Member m)
           
 CandyView rewindTranscript(javax.swing.JDesktopPane p, ClientApp a, java.lang.String s)
           
 void setMeetingView(MeetingView m)
           
 void updateUserView()
           
 
Methods inherited from class candy.core.candyObject
getDescription, setDescription, setHandle
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myView

transient MeetingView myView

REG

public static final int REG

CWT

public static final int CWT

meta

public MeetingMeta meta
Meta info for this meeting

membersHere

transient java.util.Vector membersHere
Vector of members that are currently attending the meeting

theUserList

transient CUserList theUserList
the user list object of this meeting view

myChat

transient Chat myChat
Regardless of the meeting type, each meeting has a chat associated with it.

myWB

transient Whiteboard myWB
The Whiteboard which is tied to this meeting

theSpace

transient net.jini.space.JavaSpace theSpace
some networking variables...

mgr

transient net.jini.core.transaction.server.TransactionManager mgr

myOwner

transient ClientApp myOwner
my owner ...

theData

public java.util.Vector theData
The entire stream of packets representing this meeting

activeData

transient java.util.Vector activeData
The active packets applicable to this meeting object during a run

transcriptIdx

public java.lang.Integer transcriptIdx
BELOW ARE THE METHODS FOR TRANSCRIPTABLE
Constructor Detail

Meeting

public Meeting()
constructor for meeting

Meeting

public Meeting(java.lang.String h,
               java.lang.String o,
               net.jini.space.JavaSpace s,
               ClientApp cl,
               net.jini.core.transaction.server.TransactionManager m)
Meeting construction that is used in normal candy implementation

Meeting

public Meeting(MeetingMeta me,
               net.jini.space.JavaSpace s,
               ClientApp cl,
               net.jini.core.transaction.server.TransactionManager m)
Method Detail

addPacket

public void addPacket(candy.core.packet.Packet p)
add a packet to my stored vector of packets

getChat

public Chat getChat()
get the chat for this meeting

getMeetingView

public MeetingView getMeetingView()

getMembers

public java.util.Vector getMembers()

getMeta

public MeetingMeta getMeta()
get the meta info

getHandle

public java.lang.String getHandle()
Description copied from class: candyObject
get that thar handle
Overrides:
getHandle in class candyObject
Following copied from class: candy.core.candyObject
Returns:
handle the name used to grab this here object

getWhiteboard

public Whiteboard getWhiteboard()
get the wb for this meeting

addMember

public void addMember(Member m)

executePacket

public void executePacket(candy.core.packet.Packet p)

executePTD

public void executePTD()
execute the PTD

initMeeting

public void initMeeting(net.jini.space.JavaSpace s,
                        ClientApp cl,
                        net.jini.core.transaction.server.TransactionManager m)
initialize the meeting once it has been constructed ...

makeMeTemplate

public void makeMeTemplate()
make me a template to match and extract a copy of the meeting

removeMember

public void removeMember(Member m)

newQuery

public void newQuery(candy.core.packet.QueryPacket packet)
Add a new question to this meeting's list of query's
Parameters:
packet - The QueryPacket
See Also:
QueryPacket

setMeetingView

public void setMeetingView(MeetingView m)

updateUserView

public void updateUserView()

createViewForTranscript

public CandyView createViewForTranscript(javax.swing.JDesktopPane p,
                                         ClientApp a,
                                         java.lang.String s)
A Factory procedure that returns a correct view for this Chat class
Specified by:
createViewForTranscript in interface Transcriptable

rewindTranscript

public CandyView rewindTranscript(javax.swing.JDesktopPane p,
                                  ClientApp a,
                                  java.lang.String s)
Specified by:
rewindTranscript in interface Transcriptable

getTotal

public int getTotal()
Specified by:
getTotal in interface Transcriptable

getCurrent

public int getCurrent()
Specified by:
getCurrent in interface Transcriptable

nextForTranscript

public boolean nextForTranscript()
Specified by:
nextForTranscript in interface Transcriptable