edu.vt.marian.WebGate
Class rate

java.lang.Object
  |
  +--edu.vt.marian.WebGate.rate

public class rate
extends java.lang.Object

Class name: rate Class description: this class represent he rate under which a user will be charged to use the system, we design it as a class since there maybe many kinds of rates at the same time. Author: Jianxin Zhao Finished time: ????, 1998 Known bugs: none Platform: jdk1.1.5 under UNIX


Constructor Summary
rate(java.io.DataInputStream dis, edu.vt.marian.common.Debug debug)
          this constructor will create a rate object from a stream, this might be helpful for remote management in the future.
rate(edu.vt.marian.common.Debug debug)
          this constructor will create a rate object, the object is empty upon creation
rate(java.lang.String dir, edu.vt.marian.common.Debug debug)
          this constructor will create a rate object from the specified directory.
 
Method Summary
 java.lang.String add(java.lang.String type, java.lang.String value)
          this method will add the specified rate type with the specified value to the rate object
 java.lang.String delete(java.lang.String type)
          this method will delete the specified rate
 java.util.Vector get_types()
          this method will return all the types currently contained in this rate object
 java.lang.String get_value(java.lang.String type)
          this method will return the value of the specified type of this rate object
 java.lang.String save(java.lang.String filename)
          this method will save this object to the specified file
 java.lang.String set(java.lang.String type, java.lang.String value)
          this method will set the specified rate type to the specified value
 java.lang.String to_stream(java.io.DataOutputStream dos)
          this method will print the content of this object to a stream, this might be helpful for remote management in the future.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

rate

public rate(edu.vt.marian.common.Debug debug)
this constructor will create a rate object, the object is empty upon creation

rate

public rate(java.lang.String dir,
            edu.vt.marian.common.Debug debug)
this constructor will create a rate object from the specified directory.

rate

public rate(java.io.DataInputStream dis,
            edu.vt.marian.common.Debug debug)
this constructor will create a rate object from a stream, this might be helpful for remote management in the future. (not implemented yet)
Method Detail

get_types

public java.util.Vector get_types()
this method will return all the types currently contained in this rate object

add

public java.lang.String add(java.lang.String type,
                            java.lang.String value)
this method will add the specified rate type with the specified value to the rate object

set

public java.lang.String set(java.lang.String type,
                            java.lang.String value)
this method will set the specified rate type to the specified value

delete

public java.lang.String delete(java.lang.String type)
this method will delete the specified rate

get_value

public java.lang.String get_value(java.lang.String type)
this method will return the value of the specified type of this rate object

to_stream

public java.lang.String to_stream(java.io.DataOutputStream dos)
this method will print the content of this object to a stream, this might be helpful for remote management in the future. (not implemented yet)

save

public java.lang.String save(java.lang.String filename)
this method will save this object to the specified file