edu.pdx.cs399J
Class AbstractPhoneCall

java.lang.Object
  extended by edu.pdx.cs399J.AbstractPhoneCall

public abstract class AbstractPhoneCall
extends Object

This abstract class represents a phone call between a caller (the phone number of the person who originates the call) and callee (the phone number of the person whose receives the phone call). Phone calls begin and end at given times.

Author:
David Whitlock

Constructor Summary
AbstractPhoneCall()
           
 
Method Summary
abstract  String getCallee()
          Returns the phone number of the person who received this phone call.
abstract  String getCaller()
          Returns the phone number of the person who originated this phone call.
 Date getEndTime()
          Returns the time that this phone call was completed as a Date.
abstract  String getEndTimeString()
          Returns a textual representation of the time that this phone call was completed.
 Date getStartTime()
          Returns the time that this phone call was originated as a Date.
abstract  String getStartTimeString()
          Returns a textual representation of the time that this phone call was originated.
 String toString()
          Returns a brief textual description of this phone call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPhoneCall

public AbstractPhoneCall()
Method Detail

getCaller

public abstract String getCaller()
Returns the phone number of the person who originated this phone call.


getCallee

public abstract String getCallee()
Returns the phone number of the person who received this phone call.


getStartTime

public Date getStartTime()
Returns the time that this phone call was originated as a Date.


getStartTimeString

public abstract String getStartTimeString()
Returns a textual representation of the time that this phone call was originated.


getEndTime

public Date getEndTime()
Returns the time that this phone call was completed as a Date.


getEndTimeString

public abstract String getEndTimeString()
Returns a textual representation of the time that this phone call was completed.


toString

public String toString()
Returns a brief textual description of this phone call.

Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.