1 package at.ac.tuwien.sbc.valesriegler.group;
3 import javax.swing.SwingUtilities;
5 import at.ac.tuwien.sbc.valesriegler.group.gui.GroupOverviewModel;
8 * The Main class of the Group component.
10 * Start the communication and the group GUI:
12 * @author Gregor Riegler <gregor DOT riegler AT gmail DOT com>
15 public class GroupAgent {
16 public static GroupAgent groupAgent;
17 private GroupOverviewModel groupModel;
18 private GroupConnector groupconn;
20 public static void main(String[] args) {
21 // TODO: use jms and xvsm manager here.
22 groupAgent = new GroupAgent(new GroupConnector());
23 SwingUtilities.invokeLater(new GroupGUI());
26 public GroupAgent(GroupConnector groupconn) {
27 groupModel = new GroupOverviewModel();
28 this.groupconn = groupconn;
29 groupconn.init();// TODO: move somewhere else!
32 public static GroupAgent getInstance() {
36 public GroupConnector getGroupcomm() {
40 public GroupOverviewModel getGroupModel() {