/* Xholon Runtime Framework - executes event-driven & dynamic applications * Copyright (C) 2005, 2006 Ken Webb * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package org.primordion.xholon.tutorials; import org.primordion.xholon.app.Application; import org.primordion.xholon.base.XholonTime; /** * My Hello World. A Xholon tutorial. *

Two active objects of different classes collaborate to display "Hello World!" * on the console. They coordinate their behaviors by exchanging messages through ports.

* @author Ken Webb * @since 0.1 (Created on July 31, 2006) */ public class AppMyHello extends Application { /** Constructor. */ public AppMyHello() {super();} /* * @see org.primordion.xholon.app.Application#step() */ protected void step() { root.act(); XholonTime.sleep( getTimeStepInterval() ); } /** * This is the main entry point for the Xholon application. * @param args Any arguments that your application may need. * There is currently one optional command line argument. */ public static void main(String[] args) { appMain(args, "org.primordion.xholon.tutorials.AppMyHello", "./config/MyHello/MyHello_xhn.xml"); } }