FindYAxesAsFull Class Reference
List of all members.
Detailed Description
Definition at line 16 of file FindYAxesAsFull.java.
Member Function Documentation
void setReaction |
( |
String |
reaction |
) |
|
void setObservable |
( |
String |
observable |
) |
|
void setSqrts |
( |
String |
sqrts |
) |
|
void setPlength |
( |
String |
plength |
) |
|
void setStarting |
( |
String |
starting |
) |
|
String getQueryParameters |
( |
|
) |
|
Definition at line 55 of file FindYAxesAsFull.java.
00055 {
00056 StringBuffer qs = new StringBuffer();
00057 String mid = "";
00058 int number = Integer.parseInt(plength);
00059 int newstart = Integer.parseInt(starting);
00060 newstart += number;
00061 qs.append(mid + "reac=" + reaction); mid = "&";
00062 qs.append(mid + "obs=" + observable); mid = "&";
00063 qs.append(mid + "sqrtslo=" + sqrts); mid = "&";
00064 qs.append(mid + "number=" + plength + mid + "start=" + Integer.toString(newstart));
00065 return qs.toString().replaceAll("\\+","%2B");
00066 }
String getFirstNumber |
( |
|
) |
|
String getSearchString |
( |
|
) |
|
Definition at line 73 of file FindYAxesAsFull.java.
00073 {
00074 StringBuffer qs = new StringBuffer();
00075 qs.append("(");
00076 qs.append(reaction);
00077 qs.append(")");
00078 qs.append(" " + observable);
00079 qs.append(" " + sqrts);
00080 qs.append(" " + sqrts);
00081 return qs.toString();
00082 }
Definition at line 84 of file FindYAxesAsFull.java.
00084 {
00085 int first = Integer.parseInt(starting);
00086 int number = Integer.parseInt(plength);
00087 int last = first + number - 1;
00088 return Integer.toString(last);
00089 }
Definition at line 95 of file FindYAxesAsFull.java.
00095 {
00096 return (Long) constructQuery("count").uniqueResult();
00097 }
void setPaper |
( |
Paper |
p |
) |
|
Definition at line 125 of file FindYAxesAsFull.java.
00125 {
00126 Query q = constructQuery();
00127
00128 int first = Integer.parseInt(starting);
00129
00130 first=first-1;
00131
00132
00133
00134
00135 map.clear();
00136 for (Iterator it=q.iterate(); it.hasNext(); ){
00137 YAxis _yAxis = (YAxis) it.next();
00138 Paper _paper=_yAxis.getDataset().getPaper();
00139 if(map.get(_paper) == null) { map.put(_paper,new ArrayList<YAxis>());}
00140 map.get(_paper).add(_yAxis);
00141
00142
00143
00144 if (map.size() > (Integer.parseInt(plength)-1)) { break; }
00145 }
00146 return map.keySet();
00147 }
void setYAxis |
( |
YAxis |
yax |
) |
|
The documentation for this class was generated from the following file:
- /home/buckley/hepdata/codedocs/src/hepdata/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/FindYAxesAsFull.java