Class SizeFunction

java.lang.Object
  |
  +--SizeFunction
All Implemented Interfaces:
RelFunction

public class SizeFunction
extends java.lang.Object
implements RelFunction

Relational function that works with size.


Field Summary
static int LARGE
           
static int NORMAL
           
protected  int size_type
           
static int SMALL
           
 
Constructor Summary
SizeFunction(int type)
           
 
Method Summary
 void command(VRObject target)
          Do a command.
 void command(VRObject target, VRObject reference)
          Do a command.
 boolean query(VRObject target)
          Query an object.
 boolean query(VRObject target, VRObject reference)
          Do a query taking two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL

public static final int NORMAL

LARGE

public static final int LARGE

SMALL

public static final int SMALL

size_type

protected int size_type
Constructor Detail

SizeFunction

public SizeFunction(int type)
Method Detail

query

public boolean query(VRObject target,
                     VRObject reference)
Description copied from interface: RelFunction
Do a query taking two objects.
Specified by:
query in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object in the query.
reference - The reference object in the query. Returns true or false base on query.

command

public void command(VRObject target,
                    VRObject reference)
Description copied from interface: RelFunction
Do a command.
Specified by:
command in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object to perform the command on.
reference - A reference object.

query

public boolean query(VRObject target)
Description copied from interface: RelFunction
Query an object.
Specified by:
query in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The object to query. Returns true or false base on query.

command

public void command(VRObject target)
Description copied from interface: RelFunction
Do a command.
Specified by:
command in interface RelFunction
Following copied from interface: RelFunction
Parameters:
target - The target object to do command on.