⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nodedouble.java

📁 利用JAVA编写的群体机器人局部通讯完成一定得队形控制
💻 JAVA
字号:
/* * NodeDouble.java */package EDU.gatech.cc.is.clay;import java.lang.*;/** * A Node that returns double values. Since it is an extension * of NodeScalar, it can return boolean and int values also. * <P> * For detailed information on how to configure behaviors, see the * <A HREF="../clay/docs/index.html">Clay page</A>. * <P> * <A HREF="../COPYRIGHT.html">Copyright</A> * (c)1997, 1998 Tucker Balch * * @author Tucker Balch * @version $Revision: 1.1 $ */public abstract class NodeDouble extends NodeScalar	{        /**         * Provides the value of the node.         * If you implement a NodeDouble, you need to define         * this method.	 *         * @param timestamp long indicates time of the request         * @return the value         */        public abstract double Value(long timestamp);        /**         * Get the double value.	 *         * @param timestamp long indicates time of the request         * @return the double value         */        public double doubleValue(long timestamp)                {                return Value(timestamp);                }         /**         * Convert double output to int.	 *         * @param timestamp long indicates time of the request         * @return the int value         */        public int intValue(long timestamp)                {                return (int)doubleValue(timestamp);                }        /**         * Convert double output to boolean.	 *         * @param timestamp long indicates time of the request         * @return the boolean value (true if non-zero).         */        public boolean booleanValue(long timestamp)                {                if (Value(timestamp) != 0)			return(true);		else			return(false);                }        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -