wtanaka.praya.obj
Class TargetedObj

java.lang.Object
  |
  +--wtanaka.praya.obj.Obj
        |
        +--wtanaka.praya.obj.TargetedObj
All Implemented Interfaces:
java.io.Serializable

public class TargetedObj
extends Obj

Represents an object that is destined for a particular recipient.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/12/06 11:24:54 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Field Summary
private  java.lang.Object message
           
private  ResolvedRecipient target
           
 
Fields inherited from class wtanaka.praya.obj.Obj
CONTENTS, date, DATE, FROM, privThread, REVCONTENTS, REVDATE, REVFROM, REVSCORE, REVSUBJECT, SCORE, secretObject, SUBJECT
 
Constructor Summary
TargetedObj(java.lang.Object message, ResolvedRecipient target)
          Constructs an Obj which represents the pending delivery of the given message to the given recipient
 
Method Summary
 void attemptSend()
           
 java.lang.String getContents()
           
 java.lang.String getFrom()
           
 java.lang.Object getMessage()
           
 ResolvedRecipient getRecipient()
           
 java.lang.String getSubject()
           
 
Methods inherited from class wtanaka.praya.obj.Obj
getTimeStamp, isPrivileged, lessThan, setPrivilegedThread, setSecretObject, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

message

private java.lang.Object message

target

private ResolvedRecipient target
Constructor Detail

TargetedObj

public TargetedObj(java.lang.Object message,
                   ResolvedRecipient target)
Constructs an Obj which represents the pending delivery of the given message to the given recipient
Parameters:
message - the message we want to send
target - the place we want to send it to.
Method Detail

getMessage

public java.lang.Object getMessage()

getRecipient

public ResolvedRecipient getRecipient()

attemptSend

public void attemptSend()
                 throws NotSentException

getFrom

public java.lang.String getFrom()
Overrides:
getFrom in class Obj

getSubject

public java.lang.String getSubject()
Overrides:
getSubject in class Obj

getContents

public java.lang.String getContents()
Overrides:
getContents in class Obj