Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/dimduc In directory sc8-pr-cvs1:/tmp/cvs-serv2981/dimduc Modified Files: DCalculDimduc.java DParametresDimduc.java DResultatsDimduc.java ServeurDimduc.java Log Message: reformat all files Index: DCalculDimduc.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/dimduc/DCalculDimduc.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DCalculDimduc.java 23 Sep 2003 19:28:51 -0000 1.3 --- DCalculDimduc.java 25 Nov 2003 10:11:30 -0000 1.4 *************** *** 1,2609 **** ! /* ! * @file DCalculDimduc.java ! * @creation 1999-06-01 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! ! package org.fudaa.dodico.dimduc; [...5094 lines suppressed...] ! System.out.println( ! "Calcul cote moment maxi non convergent pour cote fiche = " ! + cote_fiche_m_ ! + " m, force = " ! + force_maxi_t_ ! + " t"); ! System.out.println(" FIN DU CALCUL : SORTIE "); ! } // fin (convergence_cote_ == false) ! else if (convergence_cote_) { ! /* ! System.out.println (" "); ! System.out.println ("Calcul cote et valeur moment maxi convergents dans ccmm pour force = " + force_maxi_t_ + " t, energie = " ! + energie_totale_tm_ + " tm, moment maxi = " + moment_maxi_tm_ + " tm a la cote " + cote_moment_maxi_m_ + " m"); ! System.out.println (" "); ! */ ! } // fin else ! } // fin try ! catch (Exception e) {} ! } // fin methode calculeDuc v 1.05 ! } Index: DParametresDimduc.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/dimduc/DParametresDimduc.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DParametresDimduc.java 23 Sep 2003 19:28:51 -0000 1.4 --- DParametresDimduc.java 25 Nov 2003 10:11:30 -0000 1.5 *************** *** 1,123 **** ! /* ! * @file DParametresDimduc.java ! * @creation 1999-06-01 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! ! package org.fudaa.dodico.dimduc; ! ! import org.fudaa.dodico.calcul.DParametres; ! import org.fudaa.dodico.corba.dimduc.IParametresDimducOperations; ! import org.fudaa.dodico.corba.dimduc.SParametres01; ! import org.fudaa.dodico.corba.dimduc.SParametres02; ! ! /** ! * Classe d'implantation de l'interface IParametresDimduc gerant les parametres ! * du code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Christian Barou ! */ ! public class DParametresDimduc ! extends DParametres ! implements IParametresDimducOperations ! { ! ! /** ! * Structure decrivant les parametres : diametres, epaisseurs... ! * cf "dimduc.idl". ! */ ! private SParametres01 params01 = null; ! ! /** ! * Structure decrivant les parametres : contraintes admissibles,accostage... ! * cf "dimduc.idl". ! */ ! private SParametres02 params02 = null; ! ! ! /** ! * Constructeur vide. ! */ ! public DParametresDimduc() ! { ! super(); ! } ! ! ! /** ! * Pas implanter completement. ! * ! * @return <code>new DParametresDimduc()</code>. ! */ ! public Object clone() ! { ! return new DParametresDimduc(); ! } ! ! ! /** ! * Description de la classe. ! * ! * @return "DParametresDimduc()" ! */ ! public String toString() ! { ! return "DParametresDimduc()"; ! } ! ! ! /** ! * Renvoie le structure interne utilisee pour decrire les diametres, ! * les epaisseurs...cf "dimduc.idl". ! */ ! public SParametres01 parametres01() ! { ! if(params01 == null) ! { ! params01 = new SParametres01(); ! } ! return params01; ! } ! ! ! /** ! * Modifie la structure interne correspondante. ! * ! * @param _p la nouvelle structure <code>SParametres01</code> ! */ ! public void parametres01(SParametres01 _p) ! { ! params01 = _p; ! } ! ! ! /** ! * Renvoie la structure interne utilisee pour decrire les accostages, les ! * contraintes admissibles, .... ! */ ! public SParametres02 parametres02() ! { ! if(params02 == null) ! { ! params02 = new SParametres02(); ! } ! return params02; ! } ! ! ! /** ! * Modifie la structure interne correspondante. ! * ! * @param _p la nouvelle structure <code>SParametres02</code> ! */ ! public void parametres02(SParametres02 _p) ! { ! params02 = _p; ! } ! ! } ! --- 1,92 ---- ! /* ! * @file DParametresDimduc.java ! * @creation 1999-06-01 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! package org.fudaa.dodico.dimduc; ! import org.fudaa.dodico.calcul.DParametres; ! import org.fudaa.dodico.corba.dimduc.IParametresDimducOperations; ! import org.fudaa.dodico.corba.dimduc.SParametres01; ! import org.fudaa.dodico.corba.dimduc.SParametres02; ! /** ! * Classe d'implantation de l'interface IParametresDimduc gerant les parametres ! * du code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Christian Barou ! */ ! public class DParametresDimduc ! extends DParametres ! implements IParametresDimducOperations { ! /** ! * Structure decrivant les parametres : diametres, epaisseurs... ! * cf "dimduc.idl". ! */ ! private SParametres01 params01= null; ! /** ! * Structure decrivant les parametres : contraintes admissibles,accostage... ! * cf "dimduc.idl". ! */ ! private SParametres02 params02= null; ! /** ! * Constructeur vide. ! */ ! public DParametresDimduc() { ! super(); ! } ! /** ! * Pas implanter completement. ! * ! * @return <code>new DParametresDimduc()</code>. ! */ ! public Object clone() { ! return new DParametresDimduc(); ! } ! /** ! * Description de la classe. ! * ! * @return "DParametresDimduc()" ! */ ! public String toString() { ! return "DParametresDimduc()"; ! } ! /** ! * Renvoie le structure interne utilisee pour decrire les diametres, ! * les epaisseurs...cf "dimduc.idl". ! */ ! public SParametres01 parametres01() { ! if (params01 == null) { ! params01= new SParametres01(); ! } ! return params01; ! } ! /** ! * Modifie la structure interne correspondante. ! * ! * @param _p la nouvelle structure <code>SParametres01</code> ! */ ! public void parametres01(SParametres01 _p) { ! params01= _p; ! } ! /** ! * Renvoie la structure interne utilisee pour decrire les accostages, les ! * contraintes admissibles, .... ! */ ! public SParametres02 parametres02() { ! if (params02 == null) { ! params02= new SParametres02(); ! } ! return params02; ! } ! /** ! * Modifie la structure interne correspondante. ! * ! * @param _p la nouvelle structure <code>SParametres02</code> ! */ ! public void parametres02(SParametres02 _p) { ! params02= _p; ! } ! } Index: DResultatsDimduc.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/dimduc/DResultatsDimduc.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DResultatsDimduc.java 23 Sep 2003 19:28:51 -0000 1.3 --- DResultatsDimduc.java 25 Nov 2003 10:11:30 -0000 1.4 *************** *** 1,355 **** ! /* ! * @file DResultatsDimduc.java ! * @creation 1999-06-01 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! ! package org.fudaa.dodico.dimduc; ! ! import org.fudaa.dodico.corba.dimduc.IResultatsDimducOperations; ! import org.fudaa.dodico.corba.dimduc.STableauMoments; ! import org.fudaa.dodico.corba.dimduc.SSollicitationAccostage; ! import org.fudaa.dodico.corba.ducalbe.SPointEffortDeformation; ! ! import org.fudaa.dodico.objet.CDodico; ! import org.fudaa.dodico.calcul.DResultats; ! ! /** ! * Classe d'implataion de l'interface IResultatsDimduc gerant les resultats du ! * code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Christian Barou ! */ ! public class DResultatsDimduc ! extends DResultats ! implements IResultatsDimducOperations ! { ! ! //private String path; ! ! /** ! * Structures concernant les points de la courbe effort/deformation. ! */ ! private SPointEffortDeformation[] pointsEDL = null; ! ! /** ! * Structures concernant les points de la courbe effort/deformation. ! */ ! private SPointEffortDeformation[] pointsEDC = null; ! ! /** ! * Structures decrivant les moments legers. ! */ ! private STableauMoments[] tableauMomentsLeger = null; ! ! /** ! * Structures decrivant les moments court. ! */ ! private STableauMoments[] tableauMomentsCourt = null; ! ! /** ! * Structure decrivant les sollicitations d'accostage. ! */ ! private SSollicitationAccostage[] sollicitationsAccostage = null; ! ! ! /** ! * Constructeur vide. ! */ ! public DResultatsDimduc() ! { ! super(); ! } ! ! ! /** ! * Initialise le tableau <code>pointsEDL</code> de la courbe ! * effort/deformation. ! */ ! private void litPointsEDL() ! { ! try ! { ! pointsEDL = new SPointEffortDeformation[]{}; ! } ! catch(Exception e) ! { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! ! ! /** ! * Appelle <code>litPointsEDL()</code>. ! */ ! private void analysePointsEDL() ! { ! litPointsEDL(); ! } ! ! ! /** ! * Initialise le tableau <code>pointsEDC</code> des efforts de deformation. ! */ ! private void litPointsEDC() ! { ! try ! { ! pointsEDC = new SPointEffortDeformation[]{}; ! } ! catch(Exception e) ! { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! ! ! /** ! * Appelle <code>litPointsEDC</code>. ! */ ! private void analysePointsEDC() ! { ! litPointsEDC(); ! } ! ! ! /** ! * appelle la methode <code>litTableauMomentsLeger()</code>. ! * ! * @see #litTableauMomentsLeger() ! */ ! private void analyseTableauMomentsLeger() ! { ! litTableauMomentsLeger(); ! } ! ! ! /** ! * Initialise le tableau des moments legers. ! */ ! private void litTableauMomentsLeger() ! { ! try ! { ! tableauMomentsLeger = new STableauMoments[]{}; ! } ! catch(Exception e) ! { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! ! ! /** ! * Appelle <code>litTableauMomentsCourt()</code>. ! * ! * @see #litTableauMomentsCourt() ! */ ! private void analyseTableauMomentsCourt() ! { ! litTableauMomentsCourt(); ! } ! ! ! /** ! * Initialise le tableau des moments courts. ! */ ! private void litTableauMomentsCourt() ! { ! try ! { ! tableauMomentsCourt = new STableauMoments[]{}; ! } ! catch(Exception e) ! { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! ! ! ! ! /** ! * Initialise le tableau des sollicitation d'accostage. ! */ ! private void litSollicitationAccostage() ! { ! try ! { ! sollicitationsAccostage = new SSollicitationAccostage[]{}; ! } ! catch(Exception e) ! { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! ! ! /** ! * Appelle <code>litSollicitationAccostage()</code> ! * ! * @see #litSollicitationAccostage() ! */ ! private void analyseSollicitationAccostage() ! { ! litSollicitationAccostage(); ! } ! ! ! /** ! * Pas implanter completement. ! * ! * @return <code>new DResultatsDimduc()</code>. ! */ ! public Object clone() ! { ! return new DResultatsDimduc(); ! } ! ! ! /** ! * Modifie les point effort/deformation <code>_pointsEDL</code>. ! * ! * @param _pointsEDL. ! */ ! public void pointsEDL(SPointEffortDeformation[] _pointsEDL) ! { ! pointsEDL = _pointsEDL; ! } ! ! ! /** ! * Renvoie la structure decrivant la les points de la courbe "EDL" ! * effort/deformation. ! * ! * @return structure interne apres analyse par ! <code>analysePointsEDL</code>. ! * @see #analysePointsEDL(). ! */ ! public SPointEffortDeformation[] pointsEDL() ! { ! if(pointsEDL == null) ! { ! analysePointsEDL(); ! } ! return pointsEDL; ! } ! ! ! ! /** ! * Modifie les points "EDC" de la structure Effort/deformation. ! * ! * @param _pointsEDC nouvelle structure. ! */ ! public void pointsEDC(SPointEffortDeformation[] _pointsEDC) ! { ! pointsEDC = _pointsEDC; ! } ! ! ! /** ! * Renvoie la structure des points de la courbe effort/deformation. ! */ ! public SPointEffortDeformation[] pointsEDC() ! { ! if(pointsEDC == null) ! { ! analysePointsEDC(); ! } ! return pointsEDC; ! } ! ! ! /** ! * Modifie le tableau des moments leger. ! * ! * @param _tablMomentsLeger le nouveau tableau. ! */ ! public void tableauMomentsLeger(STableauMoments[] _tablMomentsLeger) ! { ! tableauMomentsLeger = _tablMomentsLeger; ! } ! ! ! /** ! * .... ! * ! * @return ! */ ! public STableauMoments[] tableauMomentsLeger() ! { ! if(tableauMomentsLeger == null) ! { ! analyseTableauMomentsLeger(); ! } ! return tableauMomentsLeger; ! } ! ! ! ! ! /** ! * Tableau moments duc + court ! * ! * @param _tablMomentsCourt ! */ ! public void tableauMomentsCourt(STableauMoments[] _tablMomentsCourt) ! { ! tableauMomentsCourt = _tablMomentsCourt; ! } ! ! ! /** ! * Renvoie le tableau des moments courts apres ! * <code>analyseTableauMomentsCourt()</code>. ! * ! * @see #analyseTableauMomentsCourt() ! */ ! public STableauMoments[] tableauMomentsCourt() ! { ! if(tableauMomentsCourt == null) ! { ! analyseTableauMomentsCourt(); ! } ! return tableauMomentsCourt; ! } ! ! ! /** ! * renvoie le tableau des sollicitations d'accostage apres analyse: ! * <code>analyseSollicitationAccostage()</code>. ! * ! * @see #analyseSollicitationAccostage() ! */ ! public SSollicitationAccostage[] sollicitationsAccostage() ! { ! if(sollicitationsAccostage == null) ! { ! analyseSollicitationAccostage(); ! } ! return sollicitationsAccostage; ! } ! ! ! /** ! * Modifie la structure des sollicitations d'acostage. ! * ! * @param _sollicit la nouvelle structure. ! */ ! public void sollicitationsAccostage(SSollicitationAccostage[] _sollicit) ! { ! sollicitationsAccostage = _sollicit; ! } ! ! } ! --- 1,251 ---- ! /* ! * @file DResultatsDimduc.java ! * @creation 1999-06-01 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! package org.fudaa.dodico.dimduc; ! import org.fudaa.dodico.corba.dimduc.IResultatsDimducOperations; ! import org.fudaa.dodico.corba.dimduc.STableauMoments; ! import org.fudaa.dodico.corba.dimduc.SSollicitationAccostage; ! import org.fudaa.dodico.corba.ducalbe.SPointEffortDeformation; ! import org.fudaa.dodico.objet.CDodico; ! import org.fudaa.dodico.calcul.DResultats; ! /** ! * Classe d'implataion de l'interface IResultatsDimduc gerant les resultats du ! * code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Christian Barou ! */ ! public class DResultatsDimduc ! extends DResultats ! implements IResultatsDimducOperations { ! //private String path; ! /** ! * Structures concernant les points de la courbe effort/deformation. ! */ ! private SPointEffortDeformation[] pointsEDL= null; ! /** ! * Structures concernant les points de la courbe effort/deformation. ! */ ! private SPointEffortDeformation[] pointsEDC= null; ! /** ! * Structures decrivant les moments legers. ! */ ! private STableauMoments[] tableauMomentsLeger= null; ! /** ! * Structures decrivant les moments court. ! */ ! private STableauMoments[] tableauMomentsCourt= null; ! /** ! * Structure decrivant les sollicitations d'accostage. ! */ ! private SSollicitationAccostage[] sollicitationsAccostage= null; ! /** ! * Constructeur vide. ! */ ! public DResultatsDimduc() { ! super(); ! } ! /** ! * Initialise le tableau <code>pointsEDL</code> de la courbe ! * effort/deformation. ! */ ! private void litPointsEDL() { ! try { ! pointsEDL= new SPointEffortDeformation[] {}; ! } catch (Exception e) { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! /** ! * Appelle <code>litPointsEDL()</code>. ! */ ! private void analysePointsEDL() { ! litPointsEDL(); ! } ! /** ! * Initialise le tableau <code>pointsEDC</code> des efforts de deformation. ! */ ! private void litPointsEDC() { ! try { ! pointsEDC= new SPointEffortDeformation[] {}; ! } catch (Exception e) { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! /** ! * Appelle <code>litPointsEDC</code>. ! */ ! private void analysePointsEDC() { ! litPointsEDC(); ! } ! /** ! * appelle la methode <code>litTableauMomentsLeger()</code>. ! * ! * @see #litTableauMomentsLeger() ! */ ! private void analyseTableauMomentsLeger() { ! litTableauMomentsLeger(); ! } ! /** ! * Initialise le tableau des moments legers. ! */ ! private void litTableauMomentsLeger() { ! try { ! tableauMomentsLeger= new STableauMoments[] {}; ! } catch (Exception e) { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! /** ! * Appelle <code>litTableauMomentsCourt()</code>. ! * ! * @see #litTableauMomentsCourt() ! */ ! private void analyseTableauMomentsCourt() { ! litTableauMomentsCourt(); ! } ! /** ! * Initialise le tableau des moments courts. ! */ ! private void litTableauMomentsCourt() { ! try { ! tableauMomentsCourt= new STableauMoments[] {}; ! } catch (Exception e) { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! /** ! * Initialise le tableau des sollicitation d'accostage. ! */ ! private void litSollicitationAccostage() { ! try { ! sollicitationsAccostage= new SSollicitationAccostage[] {}; ! } catch (Exception e) { ! System.err.println(e); ! CDodico.exception(this, e); ! } ! } ! /** ! * Appelle <code>litSollicitationAccostage()</code> ! * ! * @see #litSollicitationAccostage() ! */ ! private void analyseSollicitationAccostage() { ! litSollicitationAccostage(); ! } ! /** ! * Pas implanter completement. ! * ! * @return <code>new DResultatsDimduc()</code>. ! */ ! public Object clone() { ! return new DResultatsDimduc(); ! } ! /** ! * Modifie les point effort/deformation <code>_pointsEDL</code>. ! * ! * @param _pointsEDL. ! */ ! public void pointsEDL(SPointEffortDeformation[] _pointsEDL) { ! pointsEDL= _pointsEDL; ! } ! /** ! * Renvoie la structure decrivant la les points de la courbe "EDL" ! * effort/deformation. ! * ! * @return structure interne apres analyse par ! <code>analysePointsEDL</code>. ! * @see #analysePointsEDL(). ! */ ! public SPointEffortDeformation[] pointsEDL() { ! if (pointsEDL == null) { ! analysePointsEDL(); ! } ! return pointsEDL; ! } ! /** ! * Modifie les points "EDC" de la structure Effort/deformation. ! * ! * @param _pointsEDC nouvelle structure. ! */ ! public void pointsEDC(SPointEffortDeformation[] _pointsEDC) { ! pointsEDC= _pointsEDC; ! } ! /** ! * Renvoie la structure des points de la courbe effort/deformation. ! */ ! public SPointEffortDeformation[] pointsEDC() { ! if (pointsEDC == null) { ! analysePointsEDC(); ! } ! return pointsEDC; ! } ! /** ! * Modifie le tableau des moments leger. ! * ! * @param _tablMomentsLeger le nouveau tableau. ! */ ! public void tableauMomentsLeger(STableauMoments[] _tablMomentsLeger) { ! tableauMomentsLeger= _tablMomentsLeger; ! } ! /** ! * .... ! * ! * @return ! */ ! public STableauMoments[] tableauMomentsLeger() { ! if (tableauMomentsLeger == null) { ! analyseTableauMomentsLeger(); ! } ! return tableauMomentsLeger; ! } ! /** ! * Tableau moments duc + court ! * ! * @param _tablMomentsCourt ! */ ! public void tableauMomentsCourt(STableauMoments[] _tablMomentsCourt) { ! tableauMomentsCourt= _tablMomentsCourt; ! } ! /** ! * Renvoie le tableau des moments courts apres ! * <code>analyseTableauMomentsCourt()</code>. ! * ! * @see #analyseTableauMomentsCourt() ! */ ! public STableauMoments[] tableauMomentsCourt() { ! if (tableauMomentsCourt == null) { ! analyseTableauMomentsCourt(); ! } ! return tableauMomentsCourt; ! } ! /** ! * renvoie le tableau des sollicitations d'accostage apres analyse: ! * <code>analyseSollicitationAccostage()</code>. ! * ! * @see #analyseSollicitationAccostage() ! */ ! public SSollicitationAccostage[] sollicitationsAccostage() { ! if (sollicitationsAccostage == null) { ! analyseSollicitationAccostage(); ! } ! return sollicitationsAccostage; ! } ! /** ! * Modifie la structure des sollicitations d'acostage. ! * ! * @param _sollicit la nouvelle structure. ! */ ! public void sollicitationsAccostage(SSollicitationAccostage[] _sollicit) { ! sollicitationsAccostage= _sollicit; ! } ! } Index: ServeurDimduc.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/dimduc/ServeurDimduc.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServeurDimduc.java 23 Sep 2003 19:28:51 -0000 1.3 --- ServeurDimduc.java 25 Nov 2003 10:11:30 -0000 1.4 *************** *** 1,47 **** ! /* ! * @file ServeurDimduc.java ! * @creation 2000-02-16 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! ! package org.fudaa.dodico.dimduc; ! ! import java.util.Date; ! ! import org.fudaa.dodico.objet.CDodico; ! ! /** ! * Lance le serveur du code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Guillaume Desnoix ! */ ! public class ServeurDimduc ! { ! /** ! * Creation et connexion a l'orb d'une instance de <code>DCalculDimduc</code>. ! * Si non vide, le premier argument passe est utilise comme nom de connexion. ! * Sinon un nom est genere par <code>CDodico.generateName(String)</code>. ! * ! * @param args le premier argument sert de nom de connexion. ! * @see org.fudaa.dodico.objet.CDodico#generateName(String) ! */ ! public static void main(String[] args) ! { ! String nom = (args.length > 0 ! ? args[0] ! : CDodico.generateName("::dimduc::ICalculDimduc")); ! ! DCalculDimduc s = new DCalculDimduc(); ! CDodico.rebind(nom, s.tie()); ! ! System.out.println("Dimduc server running... "); ! System.out.println("Name: " + nom); ! System.out.println("Date: " + new Date()); ! } ! } ! ! --- 1,38 ---- ! /* ! * @file ServeurDimduc.java ! * @creation 2000-02-16 ! * @modification $Date$ ! * @license GNU General Public License 2 ! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne ! * @mail de...@fu... ! */ ! package org.fudaa.dodico.dimduc; ! import java.util.Date; ! import org.fudaa.dodico.objet.CDodico; ! /** ! * Lance le serveur du code de calcul <code>dimduc</code>. ! * ! * @version $Revision$ $Date$ by $Author$ ! * @author Guillaume Desnoix ! */ ! public class ServeurDimduc { ! /** ! * Creation et connexion a l'orb d'une instance de <code>DCalculDimduc</code>. ! * Si non vide, le premier argument passe est utilise comme nom de connexion. ! * Sinon un nom est genere par <code>CDodico.generateName(String)</code>. ! * ! * @param args le premier argument sert de nom de connexion. ! * @see org.fudaa.dodico.objet.CDodico#generateName(String) ! */ ! public static void main(String[] args) { ! String nom= ! (args.length > 0 ! ? args[0] ! : CDodico.generateName("::dimduc::ICalculDimduc")); ! DCalculDimduc s= new DCalculDimduc(); ! CDodico.rebind(nom, s.tie()); ! System.out.println("Dimduc server running... "); ! System.out.println("Name: " + nom); ! System.out.println("Date: " + new Date()); ! } ! } |