yab.agent
Class Util

java.lang.Object
  |
  +--yab.agent.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static String classBaseName(Object obj)
           
static int direction(RealObject from, RealObject to)
           
static int distance(RealObject from, RealObject to)
           
static int max(int x, int y)
           
static int min(int x, int y)
           
static Object randomChoice(Collection col, Random random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

distance

public static final int distance(RealObject from,
                                 RealObject to)

direction

public static final int direction(RealObject from,
                                  RealObject to)

classBaseName

public static String classBaseName(Object obj)

max

public static int max(int x,
                      int y)

min

public static int min(int x,
                      int y)

randomChoice

public static Object randomChoice(Collection col,
                                  Random random)