vcr.components
Class Tape

java.lang.Object
  |
  +--vcr.components.Tape
All Implemented Interfaces:
Device

public class Tape
extends java.lang.Object
implements Device


Field Summary
static Time DEFAULT_LENGTH
           
static Time DEFAULT_POSITION
           
static Time START
           
 
Constructor Summary
Tape()
           
Tape(Time position)
           
Tape(Time position, Time length)
           
 
Method Summary
 Event forward(Time t)
           
 boolean isAtEnd()
           
 boolean isAtStart()
           
 Time position()
           
 void record(char c)
           
 Event reverse(Time t)
           
 char show()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_POSITION

public static final Time DEFAULT_POSITION

DEFAULT_LENGTH

public static final Time DEFAULT_LENGTH

START

public static final Time START
Constructor Detail

Tape

public Tape()

Tape

public Tape(Time position)

Tape

public Tape(Time position,
            Time length)
Method Detail

isAtEnd

public boolean isAtEnd()

isAtStart

public boolean isAtStart()

forward

public Event forward(Time t)
Specified by:
forward in interface Device

reverse

public Event reverse(Time t)
Specified by:
reverse in interface Device

record

public void record(char c)
Specified by:
record in interface Device

position

public Time position()
Specified by:
position in interface Device

show

public char show()
Specified by:
show in interface Device

toString

public java.lang.String toString()
Specified by:
toString in interface Device
Overrides:
toString in class java.lang.Object


Copyright © 2002 University of Ottawa. All Rights Reserved.