rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectById")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); Group g = new Group(); if (rs.next()) { g = this.getGroup(rs); } rs.close(); p.close();
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectById")); p.setInt(1, groupId);
public Group selectById(int groupId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectById")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); Group g = new Group(); if (rs.next()) { g = this.getGroup(rs); } ...
return g; }
rs = p.executeQuery(); Group g = new Group(); if (rs.next()) { g = this.getGroup(rs); } return g; } catch (SQLException e) { String es = "Erorr selectById()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close(rs, p); } }
public Group selectById(int groupId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectById")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); Group g = new Group(); if (rs.next()) { g = this.getGroup(rs); } ...
public List selectUsersIds(int groupId) throws Exception
public List selectUsersIds(int groupId)
public List selectUsersIds(int groupId) throws Exception { ArrayList l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectUsersIds")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(new In...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectUsersIds")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(new Integer(rs.getInt("user_id"))); } rs.close(); p.close();
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectUsersIds")); p.setInt(1, groupId);
public List selectUsersIds(int groupId) throws Exception { ArrayList l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectUsersIds")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(new In...
return l; }
rs = p.executeQuery(); while (rs.next()) { l.add(new Integer(rs.getInt("user_id"))); } return l; } catch (SQLException e) { String es = "Erorr selectUsersIds()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close(rs, p); } }
public List selectUsersIds(int groupId) throws Exception { ArrayList l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.selectUsersIds")); p.setInt(1, groupId); ResultSet rs = p.executeQuery(); while (rs.next()) { l.add(new In...
public void update(Group group) throws Exception
public void update(Group group)
public void update(Group group) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.update")); p.setString(1, group.getName()); p.setInt(2, group.getParentId()); p.setString(3, group.getDescription()); p.setInt(4, group.getId()); p....
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.update")); p.setString(1, group.getName()); p.setInt(2, group.getParentId()); p.setString(3, group.getDescription()); p.setInt(4, group.getId()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.update")); p.setString(1, group.getName()); p.setInt(2, group.getParentId()); p.setString(3, group.getDescription()); p.setInt(4, group.getId()); p.executeUpdate(); } catch (SQLException e) { St...
public void update(Group group) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement(SystemGlobals.getSql("GroupModel.update")); p.setString(1, group.getName()); p.setInt(2, group.getParentId()); p.setString(3, group.getDescription()); p.setInt(4, group.getId()); p....
public void addNew(Group group) throws Exception;
public void addNew(Group group) ;
public void addNew(Group group) throws Exception;
public boolean canDelete(int groupId) throws Exception;
public boolean canDelete(int groupId) ;
public boolean canDelete(int groupId) throws Exception;
public void delete(int groupId) throws Exception;
public void delete(int groupId) ;
public void delete(int groupId) throws Exception;
public Group selectById(int groupId) throws Exception;
public Group selectById(int groupId) ;
public Group selectById(int groupId) throws Exception;
public List selectUsersIds(int groupId) throws Exception;
public List selectUsersIds(int groupId) ;
public List selectUsersIds(int groupId) throws Exception;
public void update(Group group) throws Exception;
public void update(Group group) ;
public void update(Group group) throws Exception;
ResidueParser rParser = alpha.getParser("symbol");
SymbolParser rParser = alpha.getParser("token");
private static SequenceDB loadSequences(File seqFile) throws Exception { HashSequenceDB seqDB = new HashSequenceDB(HashSequenceDB.byName); Alphabet alpha = AlphabetManager.instance().alphabetForName("DNA"); ResidueParser rParser = alpha.getParser("symbol"); SequenceFactory sFact = new SimpleSequenceFacto...
} catch (SeqException se) {
} catch (BioException se) {
private static SequenceDB loadSequences(File seqFile) throws Exception { HashSequenceDB seqDB = new HashSequenceDB(HashSequenceDB.byName); Alphabet alpha = AlphabetManager.instance().alphabetForName("DNA"); ResidueParser rParser = alpha.getParser("symbol"); SequenceFactory sFact = new SimpleSequenceFacto...
MailingListData data = this.nobody.getListMgr().getMailingList(ml.getId());
MailingListData data = this.nobody.getListMgr().getMySubscription(ml.getId()).getList();
public void testCreateMailingListForExistingPerson() throws Exception { MailingListMixin ml = new MailingListMixin(this.admin, this.pers.getAddress()); // Should contain a "Your new list" email assertEquals(1, this.smtp.size()); assertEquals(1, this.smtp.count(MailType.NEW_MAILING_LIST)); MailingListData data =...
MailingListData data = this.nobody.getListMgr().getMailingList(ml.getId());
MailingListData data = this.nobody.getListMgr().getMySubscription(ml.getId()).getList();
public void testCreateMailingListForNewPerson() throws Exception { PersonInfoMixin info = new PersonInfoMixin(); MailingListMixin ml = new MailingListMixin(this.admin, info.getAddress()); // Should contain a "Your new list" email assertEquals(1, this.smtp.size()); assertEquals(1, this.smtp.count(MailType.NEW_MAIL...
protected void loadConfigStuff() throws Exception
protected void loadConfigStuff()
protected void loadConfigStuff() throws Exception { ConfigLoader.loadUrlPatterns(); I18n.load(); Tpl.load(SystemGlobals.getValue(ConfigKeys.TEMPLATES_MAPPING)); // BB Code BBCodeRepository.setBBCollection(new BBCodeHandler().parse()); }
optionsViewGround = Boolean.valueOf(props.getProperty(OPTIONS_VIEW_GROUND, "true")).booleanValue();
public void load(FileInputStream in) throws IOException { props.load(in); optionsViewRobotNames = Boolean.valueOf(props.getProperty(OPTIONS_VIEW_ROBOTNAMES, "true")).booleanValue(); optionsViewScanArcs = Boolean.valueOf(props.getProperty(OPTIONS_VIEW_SCANARCS, "false")).booleanValue(); optionsViewRobotEnergy = Boo...
while (offset < length && SchemeScannerUtilities.isIdentifierPartChar(document.getChar(offset))) offset++;
public static IRegion findSymbolRegionAroundPoint(IDocument document, int offset) throws BadLocationException { int length = document.getLength(); while (offset > 0 && Character.isWhitespace(document.getChar(offset - 1))) offset--; int start = offset; while (start > 0 && Schem...
LocalVariableInfo localVar = (LocalVariableInfo)container; if(localVar.getStart() == this){ if(localVar.getStart() == localVar.getEnd()){ localVar.setStart(null); localVar.setEnd(null); this.removeAccessor(localVar); this.removeAccessor(localVar); }else{ localVar.setStart(target); this.removeAccessor(localVar); targe...
LocalVariableInfo localVar = (LocalVariableInfo) container; if (localVar.getStart() == this) { if(target == localVar.getEnd()){ localVar.setStart(null); localVar.setEnd(null); } else { localVar.setStart(target); target.addAccessor(localVar); } } else if (localVar.getEnd() == this) { if(target == localVar.getStar...
private void changeTarget(AccessorContainer container, InstructionHandle target) { if (container instanceof JumpInstruction) { ((JumpInstruction)container).setTarget(target); target.addAccessor(container); } else if (container instanceof SwitchInstruction) { SwitchInstruction current = (SwitchIns...
ITypedRegion startPartition = document.getPartition(command.offset);
ITypedRegion startPartition = SchemeTextUtilities.getPartition(document, command.offset);
public void customizeDocumentCommand(IDocument document, DocumentCommand command) { try { if (command.text.length() == 0 && command.length == 1) { char currentChar; currentChar = document.getChar(command.offset); if (currentChar == '(' || currentChar ==...
public BackMatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length;
public BackMatrixPairDPCursor( ResidueList seq1, ResidueList seq2, PairDPMatrix matrix ) { State[] states = matrix.States(); numStates = states.length;
public BackMatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length; zeroCol = new double[numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArr...
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArray();
zeroCol = new double[numStates]; zeroECol = new double[getDotStatesIndex()]; for (int i = 0; i < zeroCol.length; ++i) { zeroCol[i] = Double.NEGATIVE_INFINITY; } for (int i = 0; i < zeroECol.length; i++) { zeroECol[i] = Double.NEGATIVE_INFINITY; }
public BackMatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length; zeroCol = new double[numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArr...
pos = new int[2]; pos[0] = seq1.length() + 1; pos[1] = seq2.length() + 1; seqs = new ResidueList[2]; seqs[0] = seq1; seqs[1] = seq2;
sMatrix = matrix.getScoreArray(); eMatrix = new double[sMatrix.length][sMatrix[0].length][getDotStatesIndex()]; pos = new int[2]; pos[0] = seq1.length() + 1; pos[1] = seq2.length() + 1; seqs = new ResidueList[2]; seqs[0] = seq1; seqs[1] = seq2;
public BackMatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length; zeroCol = new double[numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArr...
if (coords[0] == -1 || coords[1] == -1 || coords[0] == seqs[0].length() + 2 || coords[1] == seqs[1].length() + 2) return zeroCol; return (double[]) sMatrix[coords[0]][coords[1]];
if ( coords[0] == -1 || coords[1] == -1 || coords[0] == seqs[0].length() + 2 || coords[1] == seqs[1].length() + 2 ) { return zeroCol; } else { return sMatrix[coords[0]][coords[1]]; }
public double[] getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1 || coords[0] == seqs[0].length() + 2 || coords[1] == seqs[1].length() + 2) return zeroCol; return (double[]) sMatrix[coords[0]][coords[1]]; }
if (poz > seqs[dim].length() + 1) return null; if (poz == 0 || poz > seqs[dim].length()) return MagicalState.MAGICAL_RESIDUE; return seqs[dim].residueAt(poz);
if (poz > seqs[dim].length() + 1) { return null; } if (poz == 0 || poz > seqs[dim].length()) { return MagicalState.MAGICAL_RESIDUE; } return seqs[dim].residueAt(poz);
public Residue residue(int dim, int poz) { if (poz > seqs[dim].length() + 1) return null; if (poz == 0 || poz > seqs[dim].length()) return MagicalState.MAGICAL_RESIDUE; return seqs[dim].residueAt(poz); }
double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) {
double[] curCol = matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) {
private void backwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) { // System.out.println("State = " + states[l].getName()); if (states[l] inst...
if (states[l] instanceof EmissionState) advance = ((EmissionState) states[l]).getAdvance(); else advance = ia00;
if (states[l] instanceof EmissionState) { advance = ((EmissionState) states[l]).getAdvance(); } else { advance = ia00; }
private void backwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) { // System.out.println("State = " + states[l].getName()); if (states[l] inst...
double score = 0.0; int [] tr = transitions[l]; double[] trs = transitionScores[l];
int destI = tr[ci]; State destS = states[destI]; if (destS instanceof EmissionState) { advance = ((EmissionState)destS).getAdvance(); Residue res = resMatrix[advance[0]][advance[1]]; if (res == null) { weight = Double.NEGATIVE_INFINITY; } else if (! (destS instanceof EmissionState)) { weight = 0.0; } else { weight = em...
private void backwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) { // System.out.println("State = " + states[l].getName()); if (states[l] inst...
int ci = 0; while (ci < tr.length && sourceScores[ci] == Double.NEGATIVE_INFINITY) { ++ci; } double constant = (ci < tr.length) ? sourceScores[ci] : 0.0; for (int kc = 0; kc < tr.length; ++kc) {
private void backwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) { // System.out.println("State = " + states[l].getName()); if (states[l] inst...
double[] sourceScores = new double[tr.length]; for (int ci = 0; ci < tr.length; ++ci) { double[] sCol; double weight = 0.0; if (states[tr[ci]] instanceof EmissionState) { advance = ((EmissionState)states[tr[ci]]).getAdvance(); Residue res = resMatrix[advance[0]][advance[1]]; if (res == null) { weight = Double.NEGATIVE...
int k = tr[kc]; if (sourceScores[kc] != Double.NEGATIVE_INFINITY) { double t = trs[kc]; score += Math.exp(t + sourceScores[kc] - constant); } } curCol[l] = Math.log(score) + constant; }
private void backwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = states.length - 1; l >= 0; --l) { // System.out.println("State = " + states[l].getName()); if (states[l] inst...
colId[0] = i; colId[1] = j; matrix[0][0] = cursor.getColumn(colId); colId[0]++; matrix[1][0] = cursor.getColumn(colId); colId[1]++; matrix[1][1] = cursor.getColumn(colId); colId[0]--; matrix[0][1] = cursor.getColumn(colId);
ress.clear(); ress.add(cursor.residue(0, i)); ress.add(cursor.residue(1, j)); resMatrixF[1][1] = getResWrapper(alpha, ress); ress.clear(); ress.add(cursor.residue(0, i)); ress.add(AlphabetManager.instance().getGapResidue()); resMatrixF[1][0] = getResWrapper(alpha, ress); ress.clear(); ress.add(AlphabetManager.instance(...
private void backwardPrepareCol(int i, int j) throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { // System.out.println("*** (" + i + "," + j + ")"); ress.clear(); ress.add(cursor.residue(0, i+1)); ress.add(cursor.residue(1, j+1)); // resMatrix[1][1] = alpha.getResidue(ress); r...
backwardCalcStepMatrix();
colId[0] = i; colId[1] = j; matrix[0][0] = cursor.getColumn(colId); emission[0][0] = cursor.getEmission(colId); colId[0]++; matrix[1][0] = cursor.getColumn(colId); emission[1][0] = cursor.getEmission(colId); colId[1]++; matrix[1][1] = cursor.getColumn(colId); emission[1][1] = cursor.getEmission(colId); colId[0]--; mat...
private void backwardPrepareCol(int i, int j) throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { // System.out.println("*** (" + i + "," + j + ")"); ress.clear(); ress.add(cursor.residue(0, i+1)); ress.add(cursor.residue(1, j+1)); // resMatrix[1][1] = alpha.getResidue(ress); r...
double[] col = cursor.getCurrentColumn(); for (int l = 0; l < states.length; ++l) col[l] = (states[l] == magicalState) ? 0.0 : Double.NEGATIVE_INFINITY;
double[] col = cursor.getCurrentColumn(); for (int l = 0; l < states.length; ++l) { col[l] = (states[l] == magicalState) ? 0.0 : Double.NEGATIVE_INFINITY; }
public double runBackward(ResidueList seq0, ResidueList seq1, PairDPCursor curs) throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { states = getStates(); cursor = curs; alpha = (CrossProductAlphabet) getModel().emissionAlphabet(); // initialization double[] col = curso...
col = cursor.getColumn(ia00); int l = 0; while (states[l] != magicalState) ++l;
col = cursor.getColumn(ia00); int l = 0; while (states[l] != magicalState) { ++l; }
public double runBackward(ResidueList seq0, ResidueList seq1, PairDPCursor curs) throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { states = getStates(); cursor = curs; alpha = (CrossProductAlphabet) getModel().emissionAlphabet(); // initialization double[] col = curso...
double[] curCol = (double[]) matrix[0][0];
double[] curCol = matrix[0][0];
private void forwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = 0; l < states.length; ++l) { if (initializationHack && states[l] == magicalState) { System.out.println("Init fixu...
System.out.println("Init fixup"); continue;
continue;
private void forwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = 0; l < states.length; ++l) { if (initializationHack && states[l] == magicalState) { System.out.println("Init fixu...
double[] sCol = (double[]) matrix[advance[0]][advance[1]];
double[] sCol = matrix[advance[0]][advance[1]];
private void forwardCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; for (int l = 0; l < states.length; ++l) { if (initializationHack && states[l] == magicalState) { System.out.println("Init fixu...
s1cur = new Object[seq2.length() + 2]; s1prev = new Object[seq2.length() + 2]; s2cur = new Object[seq1.length() + 2]; s2prev = new Object[seq1.length() + 2];
s1cur = new double[seq2.length() + 2][]; s1prev = new double[seq2.length() + 2][]; s2cur = new double[seq1.length() + 2][]; s2prev = new double[seq1.length() + 2][];
public LightPairDPCursor(ResidueList seq1, ResidueList seq2, int states, boolean bp) { this.storeBPs = bp; numStates = states; s1cur = new Object[seq2.length() + 2]; s1prev = new Object[seq2.length() + 2]; s2cur = new Object[seq1.length() + 2]; s2prev = new Object[seq1.length() + 2]; if (storeBPs) { s1curB...
if (storeBPs) { s1curBP = new Object[seq2.length() + 2]; s1prevBP = new Object[seq2.length() + 2]; s2curBP = new Object[seq1.length() + 2]; s2prevBP = new Object[seq1.length() + 2]; zeroColBP = new BackPointer[numStates]; s1curBP[0] = s2curBP[0] = new BackPointer[numStates]; }
if (storeBPs) { s1curBP = new BackPointer[seq2.length() + 2][]; s1prevBP = new BackPointer[seq2.length() + 2][]; s2curBP = new BackPointer[seq1.length() + 2][]; s2prevBP = new BackPointer[seq1.length() + 2][]; zeroColBP = new BackPointer[numStates]; s1curBP[0] = s2curBP[0] = new BackPointer[numStates]; }
public LightPairDPCursor(ResidueList seq1, ResidueList seq2, int states, boolean bp) { this.storeBPs = bp; numStates = states; s1cur = new Object[seq2.length() + 2]; s1prev = new Object[seq2.length() + 2]; s2cur = new Object[seq1.length() + 2]; s2prev = new Object[seq1.length() + 2]; if (storeBPs) { s1curB...
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY;
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) { zeroCol[i] = Double.NEGATIVE_INFINITY; }
public LightPairDPCursor(ResidueList seq1, ResidueList seq2, int states, boolean bp) { this.storeBPs = bp; numStates = states; s1cur = new Object[seq2.length() + 2]; s1prev = new Object[seq2.length() + 2]; s2cur = new Object[seq1.length() + 2]; s2prev = new Object[seq1.length() + 2]; if (storeBPs) { s1curB...
if (coords[0] == -1 || coords[1] == -1) return zeroCol;
if (coords[0] == -1 || coords[1] == -1) { return zeroCol; }
public double[] _getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol;// if (heavyMatrix[coords[0]][coords[1]] == null)// heavyMatrix[coords[0]][coords[1]] = new double[numStates];// return (double[])...
return (double[]) s1cur[coords[1]];
return s1cur[coords[1]];
public double[] _getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol;// if (heavyMatrix[coords[0]][coords[1]] == null)// heavyMatrix[coords[0]][coords[1]] = new double[numStates];// return (double[])...
return (double[]) s2cur[coords[0]];
return s2cur[coords[0]];
public double[] _getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol;// if (heavyMatrix[coords[0]][coords[1]] == null)// heavyMatrix[coords[0]][coords[1]] = new double[numStates];// return (double[])...
return (double[]) s1prev[coords[1]];
return s1prev[coords[1]];
public double[] _getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol;// if (heavyMatrix[coords[0]][coords[1]] == null)// heavyMatrix[coords[0]][coords[1]] = new double[numStates];// return (double[])...
return (double[]) s2prev[coords[0]];
return s2prev[coords[0]];
public double[] _getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol;// if (heavyMatrix[coords[0]][coords[1]] == null)// heavyMatrix[coords[0]][coords[1]] = new double[numStates];// return (double[])...
Object[] tmp;
double[][] tmpS; BackPointer[][] tmpBP;
public void advance(int dim) { pos[dim]++; Object[] tmp; if (dim == 0) { tmp = s1cur; s1cur = s1prev; s1prev = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) s1cur[i] = new double[numStates]; } if (storeBPs) { tmp = s1curBP; s1curBP = s1prevBP; s1prevBP = tmp; ...
if (dim == 0) { tmp = s1cur; s1cur = s1prev; s1prev = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) s1cur[i] = new double[numStates]; }
if (dim == 0) { tmpS = s1cur; s1cur = s1prev; s1prev = tmpS; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) { s1cur[i] = new double[numStates]; } }
public void advance(int dim) { pos[dim]++; Object[] tmp; if (dim == 0) { tmp = s1cur; s1cur = s1prev; s1prev = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) s1cur[i] = new double[numStates]; } if (storeBPs) { tmp = s1curBP; s1curBP = s1prevBP; s1prevBP = tmp; ...
if (storeBPs) { tmp = s1curBP; s1curBP = s1prevBP; s1prevBP = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1curBP[i] == null) s1curBP[i] = new BackPointer[numStates]; } } } else if (dim == 1) { tmp = s2cur; s2cur = s2prev; s2prev = tmp; for (int i = 0; i <= pos[0]; ++i) { if (s2cur[i] == null) s2cur[i] = new double[nu...
if (storeBPs) { tmpBP = s1curBP; s1curBP = s1prevBP; s1prevBP = tmpBP; for (int i = 0; i <= pos[1]; ++i) { if (s1curBP[i] == null) { s1curBP[i] = new BackPointer[numStates]; } } } } else if (dim == 1) { tmpS = s2cur; s2cur = s2prev; s2prev = tmpS; for (int i = 0; i <= pos[0]; ++i) { if (s2cur[i] == null) { s2cur[i] = n...
public void advance(int dim) { pos[dim]++; Object[] tmp; if (dim == 0) { tmp = s1cur; s1cur = s1prev; s1prev = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) s1cur[i] = new double[numStates]; } if (storeBPs) { tmp = s1curBP; s1curBP = s1prevBP; s1prevBP = tmp; ...
if (storeBPs) { tmp = s2curBP; s2curBP = s2prevBP; s2prevBP = tmp; for (int i = 0; i <= pos[0]; ++i) { if (s2curBP[i] == null) s2curBP[i] = new BackPointer[numStates]; } } }
if (storeBPs) { tmpBP = s2curBP; s2curBP = s2prevBP; s2prevBP = tmpBP; for (int i = 0; i <= pos[0]; ++i) { if (s2curBP[i] == null) { s2curBP[i] = new BackPointer[numStates]; } } } }
public void advance(int dim) { pos[dim]++; Object[] tmp; if (dim == 0) { tmp = s1cur; s1cur = s1prev; s1prev = tmp; for (int i = 0; i <= pos[1]; ++i) { if (s1cur[i] == null) s1cur[i] = new double[numStates]; } if (storeBPs) { tmp = s1curBP; s1curBP = s1prevBP; s1prevBP = tmp; ...
if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");
if (!storeBPs) { throw new NoSuchElementException( "This cursor isn't storing BackPointers." ); }
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
if (coords[0] == -1 || coords[1] == -1) return zeroColBP;
if (coords[0] == -1 || coords[1] == -1) { return zeroColBP; }
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
return (BackPointer[]) s1curBP[coords[1]];
return s1curBP[coords[1]];
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
return (BackPointer[]) s2curBP[coords[0]];
return s2curBP[coords[0]];
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
return (BackPointer[]) s1prevBP[coords[1]];
return s1prevBP[coords[1]];
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
return (BackPointer[]) s2prevBP[coords[0]];
return s2prevBP[coords[0]];
public BackPointer[] getBackPointers(int[] coords) { if (!storeBPs) throw new NoSuchElementException("This cursor isn't storing BackPointers.");// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroColBP; if (coords[0] == pos[0] && (s1cur...
if (poz == 0 || poz > seqs[dim].length()) return MagicalState.MAGICAL_RESIDUE; return seqs[dim].residueAt(poz);
if (poz == 0 || poz > seqs[dim].length()) { return MagicalState.MAGICAL_RESIDUE; } else { return seqs[dim].residueAt(poz); }
public Residue residue(int dim, int poz) { if (poz == 0 || poz > seqs[dim].length()) return MagicalState.MAGICAL_RESIDUE; return seqs[dim].residueAt(poz); }
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY;
zeroCol = new double[numStates]; for (int i = 0; i < zeroCol.length; ++i) { zeroCol[i] = Double.NEGATIVE_INFINITY; }
public MatrixPairDPCursor(ResidueList seq1, ResidueList seq2, PairDPMatrix matrix) { numStates = matrix.States().length; zeroCol = new double[numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) zeroCol[i] = Double.NEGATIVE_INFINITY; sMatrix = matrix.getScoreArray()...
if (coords[0] == -1 || coords[1] == -1) return zeroCol; return (double[]) sMatrix[coords[0]][coords[1]];
if (coords[0] == -1 || coords[1] == -1) { return zeroCol; } else { return (double[]) sMatrix[coords[0]][coords[1]]; }
public double[] getColumn(int[] coords) {// System.out.println("!!! getting " + coords[0] + "," + coords[1]); if (coords[0] == -1 || coords[1] == -1) return zeroCol; return (double[]) sMatrix[coords[0]][coords[1]]; }
public void advance(int dim);
void advance(int dim);
public void advance(int dim);
public boolean canAdvance(int dim);
boolean canAdvance(int dim);
public boolean canAdvance(int dim);
public BackPointer[] getBackPointers(int[] coords);
BackPointer[] getBackPointers(int[] coords);
public BackPointer[] getBackPointers(int[] coords);
public double[] getColumn(int[] coords);
double[] getColumn(int[] coords);
public double[] getColumn(int[] coords);
public double[] getCurrentColumn();
double[] getCurrentColumn();
public double[] getCurrentColumn();
public int getPos(int dim);
int getPos(int dim);
public int getPos(int dim);
public Residue residue(int dim, int poz);
Residue residue(int dim, int poz);
public Residue residue(int dim, int poz);
BackPointer[] curBPs = (BackPointer[]) bpMatrix[0][0];
BackPointer[] curBPs = bpMatrix[0][0];
private void viterbiCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; BackPointer[] curBPs = (BackPointer[]) bpMatrix[0][0]; for (int l = 0; l < states.length; ++l) { // System.out.println("State =...
sCol = (double[]) matrix[advance[0]][advance[1]]; bpCol = (BackPointer[]) bpMatrix[advance[0]][advance[1]];
sCol = matrix[advance[0]][advance[1]]; bpCol = bpMatrix[advance[0]][advance[1]];
private void viterbiCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; BackPointer[] curBPs = (BackPointer[]) bpMatrix[0][0]; for (int l = 0; l < states.length; ++l) { // System.out.println("State =...
sCol = (double[]) matrix[0][0]; bpCol = (BackPointer[]) bpMatrix[0][0];
sCol = matrix[0][0]; bpCol = bpMatrix[0][0];
private void viterbiCalcStepMatrix() throws IllegalResidueException, IllegalAlphabetException, IllegalTransitionException { double[] curCol = (double[]) matrix[0][0]; int[] advance; BackPointer[] curBPs = (BackPointer[]) bpMatrix[0][0]; for (int l = 0; l < states.length; ++l) { // System.out.println("State =...
System.err.println(dbURL + " " + dbUser + " " + dbPass);
public BioSQLSequenceDB(String dbURL, String dbUser, String dbPass, String biodatabase, boolean create) throws BioException { helper = DBHelper.getDBHelperForURL(dbURL); pool = new JDBCConnectionPool(dbURL, dbUser, dbPass); // Check that BioSQL database schema is post-Singapore if (! isD...
"(biodatabase_id, name, accession, version, division) " + "values (?, ?, ?, ?, ?)");
"(biodatabase_id, name, accession, version, division" + (taxon_id == -1 ? "" : ", taxon_id") + ") " + "values (?, ?, ?, ?, ?" + (taxon_id == -1 ? "" : ", ?") + ")" );
private void _addSequence(Sequence seq) throws IllegalIDException, ChangeVetoException, BioException { String seqName = idmaker.calcID(seq); int version = 1; Alphabet seqAlpha = seq.getAlphabet(); SymbolTokenization seqToke; try { seqToke = seqAlpha.getTokenization("token"); } catch (Exception ex) { ...
Annotation ann = seq.getAnnotation();
private void _addSequence(Sequence seq) throws IllegalIDException, ChangeVetoException, BioException { String seqName = idmaker.calcID(seq); int version = 1; Alphabet seqAlpha = seq.getAlphabet(); SymbolTokenization seqToke; try { seqToke = seqAlpha.getTokenization("token"); } catch (Exception ex) { ...
ex.printStackTrace();
boolean isDbSchemaSupported() { if (!dbSchemaChecked) { try { Connection conn = pool.takeConnection(); PreparedStatement ps = conn.prepareStatement("select * from location limit 1"); try { ps.executeQuery(); dbSchemaSupported = true; } catch (SQLException ex) { dbSchemaSupported = false; } ...
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException
protected void checkListAddresses(InternetAddress address, URL url) throws DuplicateListDataException, InvalidListDataException
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
boolean ownerAddy = OwnerAddress.getList(address.getAddress()) != null; boolean verpAddy = VERPAddress.getVERPBounce(address.getAddress()) != null; if (ownerAddy || verpAddy) throw new InvalidListDataException("Address cannot be used", ownerAddy, verpAddy);
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
try
if (address != null)
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
MailingList list = this.dao.findMailingList(address); if (!list.getId().equals(okListId))
boolean ownerAddy = OwnerAddress.getList(address.getAddress()) != null; boolean verpAddy = VERPAddress.getVERPBounce(address.getAddress()) != null; if (ownerAddy || verpAddy) throw new InvalidListDataException("Address cannot be used", ownerAddy, verpAddy); try { this.dao.findMailingList(address);
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
catch (NotFoundException ex) {}
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
try
if (url != null)
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
MailingList list = this.dao.findMailingList(url); if (!list.getId().equals(okListId))
try { this.dao.findMailingList(url);
protected void checkListAddresses(InternetAddress address, URL url, Long okListId) throws DuplicateListDataException, InvalidListDataException { // TODO: consider whether or not we should enforce any formatting of // the url here. Seems like that's a job for the web front end? boolean ownerAddy = OwnerAddress.g...
this.checkListAddresses(address, url, null);
this.checkListAddresses(address, url);
public Long createMailingList(InternetAddress address, URL url, String description, InternetAddress[] initialOwners) throws DuplicateListDataException, InvalidListDataException { this.checkListAddresses(address, url, null); // Then create the mailing list and attach the owners. MailingList list = new MailingList(...
this.checkListAddresses(address, url, listId);
MailingList list = this.dao.findMailingList(listId);
public void setListAddresses(Long listId, InternetAddress address, URL url) throws NotFoundException, DuplicateListDataException, InvalidListDataException { this.checkListAddresses(address, url, listId); MailingList list = this.dao.findMailingList(listId); list.setEmail(address.getAddress()); list.setUrl(url.t...
MailingList list = this.dao.findMailingList(listId);
InternetAddress checkAddress = list.getEmail().equals(address.getAddress()) ? null : address; URL checkUrl = list.getUrl().equals(url.toString()) ? null : url; this.checkListAddresses(checkAddress, checkUrl);
public void setListAddresses(Long listId, InternetAddress address, URL url) throws NotFoundException, DuplicateListDataException, InvalidListDataException { this.checkListAddresses(address, url, listId); MailingList list = this.dao.findMailingList(listId); list.setEmail(address.getAddress()); list.setUrl(url.t...
return super.getCClass();
return baseType.getCClass();
public CClass getCClass() { if (!isChecked()) { throw new InconsistencyException("type not checked"); } return super.getCClass(); }
public void addRole(int id, Role role) throws Exception
public void addRole(int id, Role role)
public void addRole(int id, Role role) throws Exception { this.addRole(id, role, null); }
public void addRoleValue(int id, Role role, RoleValueCollection rvc) throws Exception
public void addRoleValue(int id, Role role, RoleValueCollection rvc)
public void addRoleValue(int id, Role role, RoleValueCollection rvc) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.getRoleIdByName")); p.setString(1, role.getName()); p.setInt(2, id); int roleId = -1; ResultSet rs =...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.getRoleIdByName")); p.setString(1, role.getName()); p.setInt(2, id); int roleId = -1; ResultSet rs = p.executeQuery(); if (rs.next()) { roleId = rs.getInt("role_id"); } rs.close(); p.close(); if (r...
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.getRoleIdByName")); p.setString(1, role.getName()); p.setInt(2, id); int roleId = -1; rs = p.executeQuery(); if (rs.next()) { roleId = rs.getInt("role_id"); } rs.clo...
public void addRoleValue(int id, Role role, RoleValueCollection rvc) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.getRoleIdByName")); p.setString(1, role.getName()); p.setInt(2, id); int roleId = -1; ResultSet rs =...
public void deleteAllRoles(int id) throws Exception
public void deleteAllRoles(int id)
public void deleteAllRoles(int id) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteAllRoleValues")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareStatement( ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteAllRoleValues")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteAllGroupRoles")); p.se...
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteAllRoleValues")); p.setInt(1, id); p.executeUpdate(); p.close(); p=null; p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.delete...
public void deleteAllRoles(int id) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteAllRoleValues")); p.setInt(1, id); p.executeUpdate(); p.close(); p = JForumExecutionContext.getConnection().prepareStatement( ...
public void deleteRole(int id, String roleName) throws Exception
public void deleteRole(int id, String roleName)
public void deleteRole(int id, String roleName) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteGroupRole")); p.setString(1, roleName); p.setInt(2, id); p.executeUpdate(); p.close(); }
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteGroupRole")); p.setString(1, roleName); p.setInt(2, id); p.executeUpdate(); p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteGroupRole")); p.setString(1, roleName); p.setInt(2, id); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr deleteRole()"; log.error(es, e); throw new RuntimeException...
public void deleteRole(int id, String roleName) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("PermissionControl.deleteGroupRole")); p.setString(1, roleName); p.setInt(2, id); p.executeUpdate(); p.close(); }
private List loadGroupRoles(List groups) throws Exception
private List loadGroupRoles(List groups)
private List loadGroupRoles(List groups) throws Exception { List groupRolesList = new ArrayList(); for (Iterator iter = groups.iterator(); iter.hasNext(); ) { Group g = (Group)iter.next(); RoleCollection roles = RolesRepository.getGroupRoles(g.getId()); if (roles == null) { roles = this.loadRoles(g....
public RoleCollection loadRoles(int id) throws Exception
public RoleCollection loadRoles(int id)
public RoleCollection loadRoles(int id) throws Exception { return SecurityCommon.processLoadRoles(SystemGlobals.getSql("PermissionControl.loadGroupRoles"), id); }
public RoleCollection loadRolesByUserGroups(User user) throws Exception
public RoleCollection loadRolesByUserGroups(User user)
public RoleCollection loadRolesByUserGroups(User user) throws Exception { List groups = user.getGroupsList(); // For single group, we don't need to check for merged roles if (groups.size() == 1) { return (RoleCollection)this.loadGroupRoles(groups).get(0); } // When the user is...
getKContext().setSource(true); this.writeProperties(fe, wr, context); this.writeChildren(fe, wr, context); getKContext().setSource(source);
else { this.writeProperties(fe, wr, context); this.writeChildren(fe, wr, context); }
public void marshal(Object elem, HierarchicalStreamWriter wr, MarshallingContext context) { FlowElement fe = (FlowElement) elem; boolean source = getKContext().isSource(); if (!source) { wr.addAttribute("_source", "true"); } getKContext().setSource(true); this.writeProperties(fe, wr, context); this.writeChild...
boolean rDepType = rType instanceof CDependentType, lDepType = lType instanceof CDependentType;
boolean rDepType = rType instanceof CDependentType || rType.getCClass().isMixinInterface() && rType.getCClass().isNested(), lDepType = lType instanceof CDependentType || lType.getCClass().isMixinInterface() && lType.getCClass().isNested(); check( context, !(rDepType ^ lDepType), CaesarMessages.ASSIGNMENT_MIXEDTYPES);
public JExpression analyse(CExpressionContext context) throws PositionedError { TypeFactory factory = context.getTypeFactory(); if (left instanceof JParenthesedExpression) { context.reportTrouble(new CWarning(getTokenReference(), KjcMessages.PARENTHESED_LVALUE)); } left = left.analyse(new CEx...
if ( rDepType != lDepType ){ check(context, false, CaesarMessages.ASSIGNMENT_MIXEDTYPES ); } if (rDepType == true){
if (rDepType == true) {
public JExpression analyse(CExpressionContext context) throws PositionedError { TypeFactory factory = context.getTypeFactory(); if (left instanceof JParenthesedExpression) { context.reportTrouble(new CWarning(getTokenReference(), KjcMessages.PARENTHESED_LVALUE)); } left = left.analyse(new CEx...
public Object buildObject(Class clazz, Object[] params);
public Object buildObject(Class clazz, List paramsList);
public Object buildObject(Class clazz, Object[] params);
setFault(e);
recordFault(e);
public void execute() { assertNotCompleted(); try { sendTheMessage(); } catch (RuntimeException e) { setFault(e); } completed(); }