--- projects/cms/source/host/java/JavaHost.java 2000/11/27 19:48:03 1.1 +++ projects/cms/source/host/java/JavaHost.java 2000/11/27 20:36:20 1.2 @@ -1,28 +1,56 @@ -/* Java Host for i-scream -* Written by Ash Beeson ab11 -* Version History: -* 1.0 12/11/00 Inital working version -*/ +//---PACKAGE DECLARATION--- +//---IMPORTS--- + +/** + * A small efficient JavaHost + * Designed to be used as a working design to build the C++ hosts on. + * Hopefully fully functional and thus can be used as part of a test rig. + * + * @author $Author: ab11 $ + * @version $Id: JavaHost.java,v 1.2 2000/11/27 20:36:20 ab11 Exp $ + */ class JavaHost { - - public JavaHost( String serverName, int port ){ - // create a connection to the configurator - Config config = new Config(serverName, port); - // the config class knows what values it wants to get from - // the configurator - - // create a SystemMonitor object and pass the confifurator - // as a param so it knows what to do! - SystemMonitor sysMon = new SystemMonitor(config); - - while ( true ){ - // keep going for ever and ever ;) - // send a udp packet to the filter declared in config - // send it the xml packet created by getInfo() - LowLevelNet.sendUDPPacket(config, sysMon.getInfo()); - } - - } // public javahost - + +//---FINAL ATTRIBUTES--- + +//---STATIC METHODS--- + +//---CONSTRUCTORS--- + + /** + * Constructor for the class. Takes in the hostname and port number + * of the Configuration Manager. + * + */ + public JavaHost( String serverName, int port ){ + // create a connection to the configurator + Config config = new Config(serverName, port); + // the config class knows what values it wants to get from + // the configurator + + // create a SystemMonitor object and pass the confifurator + // as a param so it knows what to do! + SystemMonitor sysMon = new SystemMonitor(config); + + while ( true ){ + // keep going for ever and ever ;) + // send a udp packet to the filter declared in config + // send it the xml packet created by getInfo() + LowLevelNet.sendUDPPacket(config, sysMon.getInfo()); + } + + } // public javahost + + +//---PUBLIC METHODS--- + +//---PRIVATE METHODS--- + +//---ACCESSOR/MUTATOR METHODS--- + +//---ATTRIBUTES--- + +//---STATIC ATTRIBUTES--- + } // class \ No newline at end of file