Docsity

SkyNet Client - User Manual - Study Guide | COMP 410, Exams of Software Engineering

Partial preview of the text

Download SkyNet Client - User Manual - Study Guide | COMP 410 and more Exams Software Engineering in PDF only on Docsity!

SkyNet Client

User Manual

Luke Hansen May 4, 2006

Table of Contents

Table of Contents.................................................................................................................i 1 Introduction......................................................................................................................ii 1.1 Overview..................................................................................................................ii 1.2 Components of a SkyNet Simulation.......................................................................ii 2 Starting the Program.......................................................................................................iii 2.1 Overview.................................................................................................................iii 2.2 Dummy Network.....................................................................................................iii 2.3 Real Network...........................................................................................................iii 2.4 User Authentication.................................................................................................iii 2.5 Agent Code..............................................................................................................iii 2.6 Device Selector........................................................................................................iii 2.7 Avoiding Having to Type This Stuff Every Time...................................................iv 3 Using the ThreeDimDevice.............................................................................................v 3.1 Overview...................................................................................................................v 3.2 ThreeDimDevice Layout..........................................................................................v 3.3 Selecting Feeds.........................................................................................................v 3.4 Selecting Entities......................................................................................................v 3.5 Enacting Behaviors...................................................................................................v Credits...............................................................................................................................vii Comp 410 Staff.............................................................................................................vii SkyNet Development Team..........................................................................................vii i

2 Starting the Program

2.1 Overview

To start the SkyNet client program, run: Client\Controller\bin\Debug
Controller.exe Alternatively, to run the client program from Visual Studio, set Controller as the startup project (ServerMain starts the server). When you run the program, a panel is displayed with various textboxes. Once you have configured the options described below, click the “Connect” button to initialize the program.

2.2 Dummy Network

If you want to initialize a server on the same machine where you are running the client, check the “Use Dummy Network with Local Server” checkbox. The IP and port boxes will become grayed out. When you click “Connect” a server program will be initialized in a different process. The client and server will communicate using an implementation of network interface that utilizes inter-process communication to pass data between client and server.

2.3 Real Network

To connect to a server on a remote machine, enter the IP address and port of the computer that is running the SkyNet server in the respective textboxes. The server must be on a hard-wired network, but the client may be either wired or wireless.

2.4 User Authentication

The SkyNet server program does not currently perform user authentication. You may enter any string for the username and password in the respective textboxes.

2.5 Agent Code

The server expects all connecting clients to provide a Zip archive containing agent code. The agent acts as a user’s “representative” on the server, passing data and commands between the client program and the core of the SkyNet simulation. An agent must implement the IAgent interface, which simply provides some initialization methods. Any user may create a custom agent for use with SkyNet. To upload an agent, you must specify the assembly name, the fully qualified name of the main agent class, and the location of the Zip archive containing the agent code. You may open a file dialog to locate the agent code archive.

2.6 Device Selector

As there is currently only one supported device, ThreeDimDevice, the Device Selector list is currently unused. If additional devices are implemented, this list would be used to select device assemblies for dynamic loading. iii

2.7 Avoiding Having to Type This Stuff Every Time

It is tedious to type in this data every time one starts the SkyNet client if the information changes rarely. For convenience, the LogonPanel can initialize itself with data supplied from the command line. Command line parameters are interpreted the order they are displayed on the panel, that is:

  1. Server IP address
  2. Server port number
  3. Username
  4. Password
  5. Agent assembly name
  6. Fully qualified agent class name
  7. Location of agent Zip archive The desired parameters can be entered under the Debug tab in the Visual Studio project file editor. Alternatively, a command (.cmd) file could be created to initialize the panel with the desired parameters. iv

If the behavior does not require any parameters from the user, a message requesting that the behavior be enacted is sent to the server immediately. If the behavior does require parameters, a dialog box is displayed with descriptions of what data is required and a means to enter said data, usually via textboxes, list boxes, or file dialogs. When you click the “OK” button in this behavior dialog, a message is sent to the server to enact the behavior if the supplied data is of the expected type. vi

Credits

Comp 410 Staff

Eric Cheng – Course Assistant Jonathan Lugo – Course Assistant Travis McPhail – Course Assistant Clement Pang – Course Assistant Angela Wise – Course Assistant Stephen Wong – Instructor

SkyNet Development Team

Jack Chi Eric Feiveson Brooke Garnes Luke Hansen Sarah McGee Jeff Morrow John Yue vii