Mercurial > hg > RemoteEditor > REPSessionManager
view rep/Session.java @ 4:c0db426126b6
*** empty log message ***
author | pin |
---|---|
date | Tue, 11 Sep 2007 18:05:29 +0900 |
parents | f31fcac5a949 |
children | 2d4c2c19d2d0 |
line wrap: on
line source
package rep; import java.nio.channels.SocketChannel; import java.util.LinkedList; import java.util.List; public class Session { Editor masterEditor; private int sessionID; private String sessionName; private LinkedList<Editor> editorList = new LinkedList<Editor>(); public Session(int sessionID, String string, SocketChannel channel) { masterEditor = new Editor(sessionID, channel); this.sessionID = sessionID; this.sessionName = string; } public void addEditor(int editorID, SocketChannel channel) { editorList.add(new Editor(editorID, channel)); } public LinkedList getEditorList() { return editorList; } public String toString(){ return sessionName; } }