2007-10-17 00:30:00 +00:00
|
|
|
/*
|
2007-10-19 14:05:00 +00:00
|
|
|
* $Id: Argument.java,v 1.3 2007/10/18 14:51:04 bacon Exp $
|
2007-10-17 00:30:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package ase.awk;
|
|
|
|
|
|
|
|
public class Argument
|
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
protected long runid;
|
|
|
|
protected long valid;
|
2007-10-18 23:51:00 +00:00
|
|
|
|
2007-10-19 14:05:00 +00:00
|
|
|
Argument (long runid, long valid)
|
2007-10-18 23:51:00 +00:00
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
this.runid = runid;
|
|
|
|
this.valid = valid;
|
2007-10-18 23:51:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
long getIntValue ()
|
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
return getintval (this.runid, this.valid);
|
2007-10-18 23:51:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double getRealValue ()
|
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
return getrealval (this.runid, this.valid);
|
2007-10-18 23:51:00 +00:00
|
|
|
}
|
|
|
|
|
2007-10-19 14:05:00 +00:00
|
|
|
String getStringValue () throws Exception
|
2007-10-18 23:51:00 +00:00
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
return getstrval (this.runid, this.valid);
|
2007-10-18 23:51:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Argument getIndexed (String idx)
|
|
|
|
{
|
2007-10-19 14:05:00 +00:00
|
|
|
// TODO:..
|
2007-10-18 23:51:00 +00:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
Argument getIndexed (long idx)
|
|
|
|
{
|
|
|
|
return getIndexed (Long.toString(idx));
|
|
|
|
}
|
|
|
|
|
|
|
|
protected native long getintval (long runid, long valid);
|
|
|
|
protected native double getrealval (long runid, long valid);
|
2007-10-19 14:05:00 +00:00
|
|
|
protected native String getstrval (long runid, long valid) throws Exception;
|
2007-10-17 00:30:00 +00:00
|
|
|
}
|