one.world.rep
Class ResolutionResponse

java.lang.Object
  |
  +--one.world.core.Tuple
        |
        +--one.world.core.Event
              |
              +--one.world.rep.ResolutionResponse
All Implemented Interfaces:
Cloneable, Serializable

public final class ResolutionResponse
extends Event

Implements the result of a resolution. The inability to resolve a resource should be indicated with a UnknownResourceException.

Version:
$Revision: 1.7 $
See Also:
ResolutionRequest, Serialized Form

Field Summary
 Tuple[] descriptors
          The descriptor(s) for the resolved resource(s).
 SymbolicHandler[] resources
          The remote resource(s) that is(are) the result of resolution.
 
Fields inherited from class one.world.core.Event
closure, source
 
Fields inherited from class one.world.core.Tuple
CLOSURE, id, ID, META_DATA, metaData, SOURCE
 
Constructor Summary
ResolutionResponse()
          Constructs a new, empty ResolutionResponse.
ResolutionResponse(EventHandler source, Object closure, Tuple[] descriptors, SymbolicHandler[] resources)
          Constructs a new ResolutionResponse with the given source and closure, as well as multiple resources and associated tuples.
ResolutionResponse(EventHandler source, Object closure, Tuple descriptor, SymbolicHandler resource)
          Constructs a new ResolutionResponse with the given source, closure, and resource.
 
Method Summary
 void validate()
          Validates this resolution event.
 
Methods inherited from class one.world.core.Tuple
clone, containsNonSymbolicHandler, equals, fields, get, getMetaData, getType, hasField, hashCode, hasMetaData, remove, set, setMetaData, toString, wrap
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

resources

public SymbolicHandler[] resources
The remote resource(s) that is(are) the result of resolution.

descriptors

public Tuple[] descriptors
The descriptor(s) for the resolved resource(s).
Constructor Detail

ResolutionResponse

public ResolutionResponse()
Constructs a new, empty ResolutionResponse.

ResolutionResponse

public ResolutionResponse(EventHandler source,
                          Object closure,
                          Tuple descriptor,
                          SymbolicHandler resource)
Constructs a new ResolutionResponse with the given source, closure, and resource.
Parameters:
source - The source of the new resolution event.
closure - The closure for the new resolution event.
descriptor - The descriptor for the resolved resource.
resource - The resolved resource.

ResolutionResponse

public ResolutionResponse(EventHandler source,
                          Object closure,
                          Tuple[] descriptors,
                          SymbolicHandler[] resources)
Constructs a new ResolutionResponse with the given source and closure, as well as multiple resources and associated tuples.
Parameters:
source - The source of the new resolution event.
closure - The closure for the new resolution event.
descriptors - The descriptors for the resolved resources.
resources - The resolved resources.
Method Detail

validate

public void validate()
              throws TupleException
Validates this resolution event.
Overrides:
validate in class Event
Following copied from class: one.world.core.Tuple
Throws:
TupleException - Signals that the tuple is either malformed (i.e., does not conform to the tuple specification) or invalid (i.e., does not conform to the semantic constraints of its type).
See Also:
MalformedTupleException, InvalidTupleException, Type.validate(Class)


(C) Copyright 2001 UW CSE