Boeing Simulation 3.1 API Specification

unifier
Class ModeratePerspectiveUnifier

java.lang.Object
  |
  +--connect.socket.SocketComponentTemplate
        |
        +--unifier.BasicPerspectiveUnifier
              |
              +--unifier.ModeratePerspectiveUnifier
All Implemented Interfaces:
Component, PerspectiveUnifier

public class ModeratePerspectiveUnifier
extends BasicPerspectiveUnifier

This class provides for a moderately complex implementation that will look for an object close to where a new object is seen and then report that that object has moved instead of a new object showing up.

Version:
$Revision: 1.12 $
Author:
Dave Jurgens

Field Summary
protected static double MAX_MOVEMENT_DISTANCE
          This variable is the maxium distance on the unit square that we can accept that a WhatWhere will move.
private static long serialVersionUID
           
 
Fields inherited from class unifier.BasicPerspectiveUnifier
PORT
 
Fields inherited from class connect.socket.SocketComponentTemplate
portNumber
 
Constructor Summary
ModeratePerspectiveUnifier()
           
 
Method Summary
static void main(String[] args)
           
 world.WorldState unify(world.WorldState current, world.WorldImage deltaWorld)
          Returns a new WorldState object that reflects the changes depicted in the WorldImage.
 
Methods inherited from class unifier.BasicPerspectiveUnifier
accept, allowMethod, getComponentEmissary, getMaxPoints, processAcceptedConnection, processRequestingConnection
 
Methods inherited from class connect.socket.SocketComponentTemplate
connect, getConnection, processRelayPoint, spawnRelayPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface connect.Component
connect, getConnection
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

MAX_MOVEMENT_DISTANCE

protected static final double MAX_MOVEMENT_DISTANCE
This variable is the maxium distance on the unit square that we can accept that a WhatWhere will move. This implementation does not count time as a factor in distance traveled.

See Also:
Constant Field Values
Constructor Detail

ModeratePerspectiveUnifier

public ModeratePerspectiveUnifier()
Method Detail

unify

public world.WorldState unify(world.WorldState current,
                              world.WorldImage deltaWorld)
Description copied from class: BasicPerspectiveUnifier
Returns a new WorldState object that reflects the changes depicted in the WorldImage.

Specified by:
unify in interface PerspectiveUnifier
Overrides:
unify in class BasicPerspectiveUnifier
Parameters:
current - the current list of known objects
deltaWorld - processed information from a ObjectLocater
Returns:
the new world state with updated information

main

public static void main(String[] args)

Boeing Simulation 3.1 API Specification

To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.