Boeing Simulation 3.1 API Specification

locater
Class SocketObjectLocater

java.lang.Object
  |
  +--connect.socket.SocketComponentTemplate
        |
        +--locater.SocketObjectLocaterTemplate
              |
              +--locater.SocketObjectLocater
All Implemented Interfaces:
Component, ObjectLocater

public class SocketObjectLocater
extends SocketObjectLocaterTemplate

This is a basic socket based implementation of ObjectLocater. This implementation is not necesssarily the correct implentation but is designed for testing purposes. Specifically, the UAV will return a multidimensional array. This locater examines each value and then declares that certain objects are present based on the numerical value in that place. This should not happen in an actual implementation (unless this is actually the type of information returned by a UAV. Ideally, this type of class would understand some sort of image processing and would be able to read in a .jpg or other image format and then do calculations based on that information. To repeat, this class is a testing class that provides information based on an arbitrarily designed processing schedule.

Version:
$Revision: 1.19 $
Author:
Dave Jurgens

Field Summary
private static int BUS
          constants for the arbitrary assignment of pixel values to being WhatWheres.
private static int DEFAULT_PORT
           
private static int NOTHING
          constants for the arbitrary assignment of pixel values to being WhatWheres.
private static int SCHOOL
          constants for the arbitrary assignment of pixel values to being WhatWheres.
private static long serialVersionUID
           
private static int TANK
          constants for the arbitrary assignment of pixel values to being WhatWheres.
private static int UAV_
          constants for the arbitrary assignment of pixel values to being WhatWheres.
private static int UCAV_
          constants for the arbitrary assignment of pixel values to being WhatWheres.
 
Fields inherited from class locater.SocketObjectLocaterTemplate
 
Fields inherited from class connect.socket.SocketComponentTemplate
portNumber
 
Constructor Summary
SocketObjectLocater()
           
SocketObjectLocater(int port)
           
 
Method Summary
 boolean allowMethod(util.MethodRequest request)
          Extending classes should define which methods to allow remote components to execute.
private  void println(String msg)
           
 world.WorldImage processImage(uav.UAVImage image)
          This method should time stamp the create a new WorldImage, time stamp it (before processing), and then analyze the UCAV image by identifying known objects on it.
 String toString()
           
 
Methods inherited from class locater.SocketObjectLocaterTemplate
accept, processAcceptedConnection, processRequestingConnection, startListeningThread
 
Methods inherited from class connect.socket.SocketComponentTemplate
connect, getComponentEmissary, getConnection, getMaxPoints, processRelayPoint, spawnRelayPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface connect.Component
connect, getConnection
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

NOTHING

private static final int NOTHING
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

TANK

private static final int TANK
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

BUS

private static final int BUS
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

SCHOOL

private static final int SCHOOL
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

UAV_

private static final int UAV_
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

UCAV_

private static final int UCAV_
constants for the arbitrary assignment of pixel values to being WhatWheres. It is assumed that negative values of these are the destroyed versions of that object.

See Also:
Constant Field Values

DEFAULT_PORT

private static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

SocketObjectLocater

public SocketObjectLocater()

SocketObjectLocater

public SocketObjectLocater(int port)
Method Detail

allowMethod

public boolean allowMethod(util.MethodRequest request)
Description copied from class: SocketObjectLocaterTemplate
Extending classes should define which methods to allow remote components to execute. This is for security, leaving this invoke automatically could allow for unspecified behavior

Specified by:
allowMethod in class SocketObjectLocaterTemplate

println

private void println(String msg)

toString

public String toString()
Overrides:
toString in class Object

processImage

public world.WorldImage processImage(uav.UAVImage image)
Description copied from class: SocketObjectLocaterTemplate
This method should time stamp the create a new WorldImage, time stamp it (before processing), and then analyze the UCAV image by identifying known objects on it.

Specified by:
processImage in interface ObjectLocater
Specified by:
processImage in class SocketObjectLocaterTemplate

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.