|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--edu.vt.marian.WebGate.rate
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 |
public rate(edu.vt.marian.common.Debug debug)
public rate(java.lang.String dir,
edu.vt.marian.common.Debug debug)
public rate(java.io.DataInputStream dis,
edu.vt.marian.common.Debug debug)
| Method Detail |
public java.util.Vector get_types()
public java.lang.String add(java.lang.String type,
java.lang.String value)
public java.lang.String set(java.lang.String type,
java.lang.String value)
public java.lang.String delete(java.lang.String type)
public java.lang.String get_value(java.lang.String type)
public java.lang.String to_stream(java.io.DataOutputStream dos)
public java.lang.String save(java.lang.String filename)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||