6 import java.io.BufferedReader;
7 import java.io.PrintWriter;
8 import java.io.IOException;
15 this(value.length, value);
19 for (
int i = 0; i < size; i++)
23 public void getValue(
double[] value) {
25 int size = __vect.size();
26 for (
int i = 0; i < size; i++) {
28 value[i] = sfTime.value;
32 public double get1Value(
int index) {
34 return ((
ConstSFTime) __vect.elementAt(index)).getValue();
37 public String toString() {
39 StringBuffer sb =
new StringBuffer(
"[");
40 int size = __vect.size();
41 for (
int i = 0; i < size; i++) {
42 if (i > 0) sb.append(
", ");
43 sb.append(__vect.elementAt(i));
45 return sb.append(
"]").toString();
48 public void __fromPerl(BufferedReader in)
throws IOException {
50 String lenline = in.readLine();
53 int len = Integer.parseInt(lenline);
54 for (
int i = 0; i < len; i++) {
57 __vect.addElement(sf);
61 public void __toPerl(PrintWriter out)
throws IOException {
62 StringBuffer sb =
new StringBuffer(
"");
63 int size = __vect.size();
65 for (
int i = 0; i < size; i++) {
67 if (i != (size-1)) out.print (
", ");