public void writeOne(int opswIndex){
  try {
    setAddress(256);
  }
 catch (  Exception e) {
    if (log.isDebugEnabled()) {
      log.debug(rb.getString("ERROR_WRITEONE_ABORTED") + " " + e);
    }
    readAllButton.setSelected(false);
    writeAllButton.setSelected(false);
    status.setText(" ");
    return;
  }
  copyToOpsw();
  read=false;
  state=opswIndex;
  onlyOneOperation=true;
  nextRequest();
}

public void writeOne ( int opswIndex ) { try { setAddress ( 256 ) ; } catch ( Exception e ) { if ( log . isDebugEnabled ( ) ) { log . debug ( rb . getString ( "ERROR_WRITEONE_ABORTED" ) + " " + e ) ; } readAllButton . setSelected ( false ) ; writeAllButton . setSelected ( false ) ; status . setText ( " " ) ; return ; } copyToOpsw ( ) ; read = false ; state = opswIndex ; onlyOneOperation = true ; nextRequest ( ) ; }
writeone ( ) is intended to provide a mechanism to write a single opsw value ( specified by opswindex ) , rather than a sequence of opsws as done by writeall ( ) .
