Voyager ORB

com.objectspace.voyager.agent
Class Agent

java.lang.Object
  |
  +--com.objectspace.voyager.agent.Agent

public class Agent
extends java.lang.Object

The Agent class provides methods for obtaining an autonomous agent facet of an objecvt. Use IAgent interface to operate on an agent.


Method Summary
static IAgent get(java.lang.Object object)
          If the specified object implements IAgent, return the object.
static IAgent of(java.lang.Object object)
          If the specified object implements IAgent, return the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static IAgent of(java.lang.Object object)
                 throws java.lang.ClassCastException
If the specified object implements IAgent, return the object. If the specified object has a facet that implements IAgent, return the facet. If neither rule applies, add a facet that implements IAgent.
Parameters:
object - The primary object.
Throws:
java.lang.ClassCastException - A facet that implements IAgent could not be added.

get

public static IAgent get(java.lang.Object object)
If the specified object implements IAgent, return the object. If the specified object has a facet that implements IAgent, return a proxy to the facet. If neither rule applies, return null.
Parameters:
object - The primary object.

ObjectSpace Inc.

(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240