Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class SentCVWCmds  view SentCVWCmds download SentCVWCmds.java

java.lang.Object
  extended byorg.mitre.cvw.SentCVWCmds

class SentCVWCmds
extends java.lang.Object

This is a class which has a vector which stores the a maximum number (MAX) of past cvw commands sent to the server. The storage structure is a circular vector so that the vector space is used over and over. However, the display of past commands is non-circular, that is there is a first command and a last command.


Field Summary
(package private)  int currentCmd
           
(package private)  boolean firstTime
           
(package private)  int insertCmd
           
(package private)  int MAX
           
(package private)  java.util.Vector sentCmds
           
 
Constructor Summary
(package private) SentCVWCmds()
           
 
Method Summary
 void addCommand(int c, java.lang.String per, java.lang.String txt)
           
 PastCVWCmd getLastCommand()
           
 PastCVWCmd getLastCommand(boolean pop)
           
 PastCVWCmd getNextCommand()
           
 PastCVWCmd getPrevCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentCmd

int currentCmd

insertCmd

int insertCmd

MAX

int MAX

firstTime

boolean firstTime

sentCmds

java.util.Vector sentCmds
Constructor Detail

SentCVWCmds

SentCVWCmds()
Method Detail

addCommand

public void addCommand(int c,
                       java.lang.String per,
                       java.lang.String txt)

getLastCommand

public PastCVWCmd getLastCommand()

getLastCommand

public PastCVWCmd getLastCommand(boolean pop)

getPrevCommand

public PastCVWCmd getPrevCommand()

getNextCommand

public PastCVWCmd getNextCommand()