/** Box is a demo element. \color #666 \symbol Bx \symmetries normal \author Xinyu Chen \author Dave Ackley \license lgpl */ element Box{ // Typedefs typedef EventWindow.Symmetry Symmetry; // Utilities DebugUtils du; EventWindow ew; // Data members Unsigned(2) ns; Void behave(){ ew.changeSymmetry((Symmetry) (ns + 1)); if(ns == ns.maxof) ns = ns.minof; else ++ns; ew.swap(0, 1); } }