rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c;
return Cmplx.mul(new Cmplx(a,0), b);
public static final Cmplx mul(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; }
public static final Cmplx div(Cmplx a, Cmplx b)
public static final Cmplx div(double a, Cmplx b)
public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i =...
Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i = (a.i * r - a.r) / den; } return c;
return div(new Cmplx(a, 0), b);
public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i =...
return bldr.build(new StringReader(val));
return bldr.build(new StringReader(val), true);
public static Calendar getCalendar(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); return bldr.build(new StringReader(val)); } catch (Throwable t) { throw new CalFacadeException(t); } }
Calendar cal = bldr.build(new StringReader(val));
Calendar cal = bldr.build(new StringReader(val), true);
public Collection toVEvent(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); Calendar cal = bldr.build(new StringReader(val)); Vector evs = new Vector(); if (cal == null) { return evs; } ComponentList clist = cal...
logger.debug("InformativeShapeLayer: rendering shape layer");
logger.debug(ExceptionReporterUtils.getMemoryUsage()+" InformativeShapeLayer: rendering shape layer");
public void renderDataForProjection(Projection p, Graphics g){ logger.debug("InformativeShapeLayer: rendering shape layer"); super.renderDataForProjection(p,g); }
om.writeMapToPNG("map.png");
try { om.writeMapToPNG("map.png"); } catch (IOException e) { logger.error("problem saving image to map.png", e); }
public static void main(String[] args) { OpenMap om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse"); om.writeMapToPNG("map.png"); System.out.println("done"); System.exit(0); }
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h); Layer[] layers = getLayers(); for (int i = ...
public void writeMapToPNG(String filename) throws IOException { synchronized(OpenMap.class) { Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); logger.debug(ExceptionReporterUtils.getMemoryUsage()+" before make Buf Image"); BufferedImage bi = new BufferedImage(w, h, BufferedImage...
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
catch(IOException e) { System.out.println("there was a problem writing the file"); }
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
super(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset), "Current Time");
super(ClockUtil.now(), "Current Time");
public CurrentTimeFlag (){ super(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset), "Current Time"); }
sceppDCLoadTime = new MicroSecondDate();
sceppDCLoadTime = ClockUtil.now();
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
budDCLoadTime = new MicroSecondDate();
budDCLoadTime = ClockUtil.now();
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
pondDCLoadTime = new MicroSecondDate();
pondDCLoadTime = ClockUtil.now();
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
TimeInterval delay = budDCLoadTime.difference(new MicroSecondDate());
TimeInterval delay = budDCLoadTime.difference(ClockUtil.now());
protected DataCenterOperations getBudDC() { while (budDC == null) { logger.debug("Resolving Bud DataCenter"); TimeInterval delay = budDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Bud DataCenter "+delay); ...
TimeInterval delay = pondDCLoadTime.difference(new MicroSecondDate());
TimeInterval delay = pondDCLoadTime.difference(ClockUtil.now());
protected DataCenterOperations getPondDC() { while (pondDC == null) { logger.debug("Resolving Pond DataCenter"); TimeInterval delay = pondDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Pond DataCenter "+delay...
TimeInterval delay = sceppDCLoadTime.difference(new MicroSecondDate());
TimeInterval delay = sceppDCLoadTime.difference(ClockUtil.now());
protected DataCenterOperations getSceppDC() { logger.debug("Resolving Scepp DataCenter"); while (sceppDC == null) { TimeInterval delay = sceppDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Scepp DataCenter "+...
public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations;
public NCReader(Properties props) throws IOException { this(PopulationProperties.getNetworkAttr(props), XYReader.create(props)); PropParser pp = new PropParser(props); load(new FileInputStream(pp.getPath(NCReader.NC_FILE_LOC)));
public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations; }
public Element getParamter(String name);
public Object getParamter(String name);
public Element getParamter(String name);
menuReview.add(menuItemBeginning); menuReview.add(menuItemEnd);
menuReview.add(menuItemGoToBeginning); menuReview.add(menuItemGoToEnd);
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
menuReview.add(menuItemPreviousTurn); menuReview.add(menuItemNextTurn);
menuReview.add(menuItemGoToPreviousTurn); menuReview.add(menuItemGoToNextTurn);
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
menuReview.add(menuItemPreviousDecision); menuReview.add(menuItemNextDecision);
menuReview.add(menuItemGoToPreviousDecision); menuReview.add(menuItemGoToNextDecision);
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
menuItemBeginning.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemEnd.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemNextTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemPreviousDecision.set...
menuItemGoToBeginning.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToEnd.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToPreviousTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoToNextTurn.setEnabled(enablednessInModesMenuItemReviewMode[mode]); menuItemGoTo...
public void setMode(int mode) { menuItemShowUsers.setEnabled(enablednessInModesMenuItemShowUsers[mode]); menuItemShowGames.setEnabled(enablednessInModesMenuItemShowGames[mode]); menuItemStartNewGame.setEnabled(enablednessInModesMenuItemStartNewGame[mode]); menuItemStartGamePlay.setEnable...
logger.debug("calling contains(double, double, double, double)");
public boolean contains(double x, double y, double w, double h){ return false; }
public Rectangle getBounds(){ return null; }
public Rectangle getBounds(){ logger.debug("calling getBounds"); return null; }
public Rectangle getBounds(){ return null; }
public Rectangle2D getBounds2D(){ return null; }
public Rectangle2D getBounds2D(){ logger.debug("calling getBounds2D"); return null; }
public Rectangle2D getBounds2D(){ return null; }
logger.debug("calling getPathIterator(AffineTransform)");
public PathIterator getPathIterator(AffineTransform at){ return getPathIterator(at, 0); }
logger.debug("calling intersects(double, double, double, double)");
public boolean intersects(double x, double y, double w, double h){ return false; }
if(tr.getEndTime().before(seis.getEndTime())
if(tr.getEndTime().before(seis.getBeginTime())
public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getEndTime()) || tr.getBeginTime().afte...
if (tr.getEndTime().before(seis.getEndTime())){ logger.debug("tr.getEndTime().before(seis.getEndTime())"); } else { logger.debug("tr.getBeginTime().after(seis.getEndTime())"); }
public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getEndTime()) || tr.getBeginTime().afte...
BwFreeBusy fb = freeBusy.getFreeBusy(svci, user);
BwFreeBusy fb = freeBusy.getFreeBusy(svci, cnode.getCDURI().getCal(), user);
public void getFreeBusy(CaldavCalNode cnode, FreeBusyQuery freeBusy) throws WebdavIntfException { try { String user = cnode.getCDURI().getOwner(); getSvci(); BwFreeBusy fb = freeBusy.getFreeBusy(svci, user); cnode.setFreeBusy(fb); } catch (WebdavIntfException we) { ...
public TimeZone getDefaultTimeZone() throws CalFacadeException;
public TimeZone getDefaultTimeZone() throws CalFacadeException { if ((defaultTimeZone == null) && (defaultTimeZoneId != null)) { defaultTimeZone = getTimeZone(defaultTimeZoneId); } return defaultTimeZone; }
public TimeZone getDefaultTimeZone() throws CalFacadeException;
public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FROM time WHERE time_id = ?"); put = conn.prepareSta...
public JDBCTime() throws SQLException{this(ConnMgr.createConnection());}
public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FR...
public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4);
public static GJChronology getInstance() { return getInstance(DateTimeZone.getDefault(), DEFAULT_CUTOVER, 4);
public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4); }
createPoints(rootView, ORIGIN);
createPoints(rootView, ORIGIN, rootView.getAngle());
private void adjustModel() { points = new Vector<Point2D>(); Vector<IdeaView> views = rootView.getSubViews(); createPoints(rootView, ORIGIN); tweakIdeas(views, ORIGIN, 0.0, false); }
private void createPoints(IdeaView parentView, Point2D c) {
private void createPoints(IdeaView parentView, Point2D c, double initAngle) {
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
double initAngle = parentView.getAngle();
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
createPoints(view, point);
createPoints(view, point, initAngle + view.getAngle());
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
view.getAngle(), true);
view.getAngle() + initAngle, true);
private Point2D tweakIdeas(final Vector<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); ...
public IdeaView(Idea anIdea) { setIdea(anIdea);
public IdeaView() { this(null);
public IdeaView(Idea anIdea) { setIdea(anIdea); }
form.getMsg().emit("org.bedework.message.event.added");
form.getMsg().emit("org.bedework.client.message.event.added");
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } FormFile upFile = form.g...
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy()); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubverticesItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, ne...
seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]);
if(autoColor) seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); else seisPlotters.put(newPlotter, Color.blue);
public void addSeismogram(DataSetSeismogram newSeismogram){ seismos.add(newSeismogram); SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram.getSeismogram(), timeRegistrar, ampRegistrar); Iterator e = filters.iterator(); seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); ...
logger.debug("Starting image creation thread");
public synchronized void createImage(BasicSeismogramDisplay.ImagePainter patron, PlotInfo requirements){ patrons.put(patron, requirements); if(!requests.contains(patron)) requests.add(patron); if(!imageCreation.isAlive()){ imageCreation = new Thread(this, "Image Maker"); imageCreation.start(); } }
public int find(String file, TimeRange fileTimeWindow)
public int find(String file, MicroSecondTimeRange fileTimeWindow)
public int find(String file, TimeRange fileTimeWindow) throws RT130FormatException, IOException { return rtFileReader.processRT130Data(file, false, fileTimeWindow)[0].sample_rate; }
val = (BwSubscription)val.clone();
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); }
dbi.updatePreferences(prefs);
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); }
if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / no...
if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i=autocorrelation.length; i< maxlag+1; i++) { tmp[i] = binarySumDevLag(0, getLength(), mean(), i) / no...
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i...
autocorrelation = tmp;
return autocorrelation;
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i...
return autocorrelation; }
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i...
double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j];
double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1][maxlag+1]; pacfMatrix[1][1] = myacf[1]; for (int k=2; k<=maxlag; k++) { double topSum = 0; double botSum = 0; for (int j=1; j<k; j++) { topSum += pacfMatrix[k-1][j] * myacf[k-j]; botSum += pacfMatrix[k-1][j] * myacf[j]; } pacfMatrix[k][k] = ( my...
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1]...
pacfMatrix[k][k] = ( myacf[k] - topSum ) / ( 1 - botSum ); for (int j=1; j< k; j++) { pacfMatrix[k][j] = pacfMatrix[k-1][j] - pacfMatrix[k][k] * pacfMatrix[k-1][k-j]; } } partialautocorr = new double[maxlag+1]; partialautocorr[0] = 1; for (int k=1; k<=maxlag; k++) { partialautocorr[k] = pacfMatrix[k][k]; }
return partialautocorr;
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1]...
return partialautocorr; }
public double[] pacf(int maxlag) { if (partialautocorr.length < maxlag) { double[] tmp = new double[maxlag]; System.arraycopy(partialautocorr, 0, tmp, 0, partialautocorr.length); double[] myacf = acf(maxlag); double[][] pacfMatrix = new double[maxlag+1]...
if (iSeries != null) { return iSeries.length;
if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0;
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
public int getLength() { if (iSeries != null) { return iSeries.length; } if (sSeries != null) { return sSeries.length; } if (fSeries != null) { return fSeries.length; } if (dSeries != null) { return dSeries.length; } return 0; }
if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } return 0;
if (iSeries != null) { return iBinaryIndexSum(start, finish); } if (sSeries != null) { return sBinaryIndexSum(start, finish); } if (fSeries != null) { return fBinaryIndexSum(start, finish); } if (dSeries != null) { return dBinaryIndexSum(start, finish); } throw new RuntimeException("All data arrays are null (int, short...
public double binaryIndexSum(int start, int finish) { if (iSeries != null) { return iBinaryIndexSum(start, finish); } // end of if (iSeries != null) if (sSeries != null) { return sBinaryIndexSum(start, finish); } // end of if (sSeries != null) if (fSeries != null) { return fBinar...
if (queryResult == null || queryResult.isEmpty()) {
if (queryResult == null) { return resourceBundle.getLocalizedString("ro_execution_of_query_failed", "Execution of query failed."); } if (queryResult.isEmpty()) {
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything...
if (designBox == null) { return resourceBundle.getLocalizedString("ro_design_is_not available", "Problems with the chosen layout occurred."); }
private String executeQueries(SQLQuery sqlQuery, int numberOfRows, QueryToSQLBridge sqlBridge, List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { QueryResult queryResult = sqlBridge.executeQueries(sqlQuery, numberOfRows, executedSQLStatements); // check if everything...
DataCenter datacenter = DataCenterHelper.narrow(getSeismogramDCObject(dns, objectname));
logger.debug("before get SeismogramDC Object"); org.omg.CORBA.Object obj = getSeismogramDCObject(dns, objectname); logger.debug("before narrow"); DataCenter datacenter = DataCenterHelper.narrow(obj); logger.debug("after narrow");
public DataCenter getSeismogramDC(String dns, String objectname) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { DataCenter datacenter = DataCenterHelper.narrow(getSeismogramDCObject(dns, objectname)...
stat = createInstance();
stat = createInstanceArray();
protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); stat = createInstance(); // JUnitDoclet end method testcase.setUp }
context.setName(params.getTestContext());
context.setName(params.getTrainingContext());
protected Context getTrainingContext() throws Exception { if (trainingContext == null) { try { ApplicationService caCoreService = getCaCoreAPIService(); Context context = new Context(); UMLBrowserParams params = UMLBrowserParams.getInstance(); context.setNam...
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp()); rfGetFileIdStmt.setTimestamp(3, endDate.getTimestamp()); rfGetFileIdStmt....
public int[] getFileIds(RequestFilter[] requestFilters) throws SQLException { ArrayList arrayList = new ArrayList();
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp());...
ResultSet rs = rfGetFileIdStmt.executeQuery(); if(rs.next()) { Integer rtn = new Integer(rs.getInt("id")); return rtn.toString();
for(int counter = 0; counter < requestFilters.length; counter++) { String channel_id = ChannelIdUtil.toString(requestFilters[counter].channel_id); MicroSecondDate beginDate = new MicroSecondDate(requestFilters[counter].start_time); MicroSecondDate endDate = new MicroSecondDate(requestFilters[counter].end_time); int[] i...
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp());...
return null;
Integer[] rtnValues = new Integer[arrayList.size()]; rtnValues = (Integer[]) arrayList.toArray(rtnValues); int[] intValues = new int[rtnValues.length]; for(int counter = 0; counter < rtnValues.length; counter++) { intValues[counter] = rtnValues[counter].intValue(); } return intValues;
public String getFileIds(ChannelId channel_id, MicroSecondDate beginDate, MicroSecondDate endDate) throws SQLException { rfGetFileIdStmt.setString(1, ChannelIdUtil.toString(channel_id)); rfGetFileIdStmt.setTimestamp(2, beginDate.getTimestamp());...
if(job == null) job = new RetrievalJob();
public DataCenterThread (RequestFilter[] requestFilters, LocalDataCenterCallBack a_client, SeisDataChangeListener initiator, DataCenterOperations dbDataCenter){ this.requestFilters = requestFilters; this.a_client = a_c...
public void addItem(com.idega.block.basket.data.BasketItem p0) throws java.rmi.RemoteException;
public void addItem(com.idega.block.basket.data.BasketItem p0,int p1) throws java.rmi.RemoteException;
public void addItem(com.idega.block.basket.data.BasketItem p0) throws java.rmi.RemoteException;
if (!st.hasMoreTokens()) continue;
String value = ""; if (st.hasMoreTokens()) value = URLDecoder.decode(st.nextToken(), encoding);
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>...
String value = URLDecoder.decode(st.nextToken(), encoding);
public static Map<String, List<String>> parseParameters(HttpServletRequest request, String query) throws UnsupportedEncodingException { // get the request encoding String encoding = request.getCharacterEncoding(); // not found, fallback to UTF-8 if (encoding == null) encoding = "UTF-8"; Map<String, List<String>...
if (this.ldapContext == null) { throw new IllegalStateException("No LdapContext specified."); }
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ...
static void addResult(final Map results, final Object key, final Object value) {
public static void addResult(final Map results, final Object key, final Object value) {
static void addResult(final Map results, final Object key, final Object value) { if (results == null) { throw new IllegalArgumentException("Cannot add a result to a null map."); } if (key == null) { throw new IllegalArgumentException("Cannot add a result wi...
static Map parseAttributeToAttributeMapping(final Map mapping) {
public static Map parseAttributeToAttributeMapping(final Map mapping) {
static Map parseAttributeToAttributeMapping(final Map mapping) { //null is assumed to be an empty map if (mapping == null) { return Collections.EMPTY_MAP; } //do a defenisve copy of the map final Map mappedAttributesBuilder = new HashMap(); for (final It...
static Collection flattenCollection(final Collection source) {
public static Collection flattenCollection(final Collection source) {
static Collection flattenCollection(final Collection source) { if (source == null) { throw new IllegalArgumentException("Cannot flatten a null collection."); } final Collection result = new LinkedList(); for (final Iterator setItr = source.iterator(); s...
Object command = e.getActionCommand();
Object source = e.getSource();
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
if( command == MenuBar.FILE_CLOSE ) {
if( source == MenuBar.fileClose ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILE_TRACE ) {
} else if( source == MenuBar.fileTrace ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_ALL_MESSAGES ) {
} else if( source == MenuBar.filterAllMessages ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_ADMINISTRATIVE_MESSAGES ) {
} else if( source == MenuBar.filterAdministrativeMessages ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_APPLICATION_MESSAGES ) {
} else if( source == MenuBar.filterApplicationMessages ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_INDICATION_CATEGORY ) {
} else if( source == MenuBar.filterIndicationCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_EVENT_COMMUNICATION_CATEGORY ) {
} else if( source == MenuBar.filterEventCommunicationCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_QUOTATION_NEGOTIATION_CATEGORY ) {
} else if( source == MenuBar.filterQuotationNegotiationCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_MARKET_DATA_CATEGORY ) {
} else if( source == MenuBar.filterMarketDataCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_SECURITY_AND_TRADING_SESSION_CATEGORY ) {
} else if( source == MenuBar.filterSecurityAndTradingSessionCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_SINGLE_GENERAL_ORDER_HANDLING_CATEGORY ) {
} else if( source == MenuBar.filterSingleGeneralOrderHandlingCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_CROSS_ORDERS_CATEGORY ) {
} else if( source == MenuBar.filterCrossOrdersCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_MULTILEG_ORDERS_CATEGORY ) {
} else if( source == MenuBar.filterMultilegOrdersCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_LIST_PROGRAM_BASKET_TRADING_CATEGORY ) {
} else if( source == MenuBar.filterListProgramBasketTradingCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_ALLOCATION_CATEGORY ) {
} else if( source == MenuBar.filterAllocationCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_CONFIRMATION_CATEGORY ) {
} else if( source == MenuBar.filterConfirmationCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_SETTLEMENT_INSTRUCTIONS_CATEGORY ) {
} else if( source == MenuBar.filterSettlementInstructionsCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_TRADE_CAPTURE_REPORTING_CATEGORY ) {
} else if( source == MenuBar.filterTradeCaptureReportingCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_REGISTRATION_INSTRUCTIONS_CATEGORY ) {
} else if( source == MenuBar.filterRegistrationInstructionsCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_POSITIONS_MAINTENANCE_CATEGORY ) {
} else if( source == MenuBar.filterPositionsMaintenanceCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_COLLATERAL_MANAGEMENT_CATEGORY ) {
} else if( source == MenuBar.filterCollateralManagementCategory ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.FILTER_CUSTOM_FILTER ) {
} else if( source == MenuBar.filterCustomFilter ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.HELP_ABOUT ) {
} else if( source == MenuBar.helpAbout ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
if( command == MenuBar.FILE_OPEN ) {
if( source == MenuBar.fileOpen ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) {
} else if( source == MenuBar.fileExportFIX ) { exportFile( source ); } else if( source == MenuBar.fileExportXML ) { exportFile( source ); } else if( source == MenuBar.fileExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewExportFIX ) { exportFile( source ); } else if( source == MenuBar.viewExportXML )...
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
} else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) {
} else if( source == MenuBar.viewAutosizeAndHideColumns ) {
public void actionPerformed(final ActionEvent e) { Object command = e.getActionCommand(); if( command == MenuBar.FILE_CLOSE ) { closeFile(); } else if( command == MenuBar.FILE_TRACE ) { if( tracer.isRunning() ) tracer.stop(); else tracer.start(); } else if( command == MenuBar.FILTER_ALL_MESSAGES ) { ...
Object command = e.getActionCommand();
Object source = e.getSource();
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { ...
if( command == MenuBar.FILE_OPEN ) {
if( source == MenuBar.fileOpen ) {
public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { ...