tennsS v1.53 Reference Manual

Copyright (C) 1997 - 2002 Mike Arnold, Altjira Software, mikea@altjira.com

Go to the previous, next section, table of contents.


Pong_P_S

Class Pong_P_S derived from Networkp and Networks (size <300> bytes)

A component object that implements a network of dummy nodes where the functionality of the network is defined by a Network Model Interface (NMI) object. It is expected that the number of nodes is explicitly defined by the NMI object.


Configuration

nmi/... passed to the NMI object

Commands

nmi/... passed to the NMI object build build the Nmi component parse pass the input streams as a configuration stream to the Nmi component. The following details the NMI object. The base NMI object

A Network Model Interface Component.

Configuration

always-output=<bool> always send output state (false) input-alias=<tag or old alias>:<new alias> sets new alias for input tag output-alias=<tag or old alias>:<new alias> sets new alias for output tag The derived NMI object

An NMI component that implements a ping-pong task

Configuration

time-step=<data> size of the internal time step (0.01) disp-period=<uint> how often to display the graphics (10 timesteps) automatic=<bool> automatic game mode (0) continuous=<bool> continuous game mode (0) trace=<bool> display a trace of the ball (false) court-long=<uint> longitudinal size of court (78) court-lat=<uint> lateral size of court (23) ball-dlong=<data> initial longitudinal velocity of ball (10) ball-dlat=<data> initial lateral velocity of ball (5) rac1-length=<data> length of racquet 1 (6) rac2-length=<data> length of racquet 2 (6) r1-restrict=<bool> restrict racquet 1 to court (false) r2-restrict=<bool> restrict racquet 2 to court (false) p1-restrict=<bool> restrict player 1 to court (false) p2-restrict=<bool> restrict player 2 to court (false)

Commands

start-graphics [width=<uint>] [height=<uint>] start the graphics width=<uint> width of window height=<uint> height of window stop-graphics stop the graphics display-graphics display the graphics

Derived Classes


Go to the previous, next section, table of contents. Document generated Mon Jun 16 02:19:05 GMT 2003