Ignore:
Timestamp:
06/23/11 10:02:31 (13 years ago)
Author:
vasaie_p
Message:

fix: long string to omc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.simulation.core/src/org/openmodelica/simulation/core/omc/corba/OMCProxy.java

    r638 r835  
    11/*
    2  * This file is part of OpenModelica.
     2 * This file is part of Modelica Development Tooling.
    33 *
    4  * Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
    5  * c/o Linköpings universitet, Department of Computer and Information Science,
    6  * SE-58183 Linköping, Sweden.
     4 * Copyright (c) 2005, Link�pings universitet, Department of
     5 * Computer and Information Science, PELAB
    76 *
    87 * All rights reserved.
    98 *
    10  * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
    11  * THIS OSMC PUBLIC LICENSE (OSMC-PL).
    12  * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
    13  * OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
     9 * (The new BSD license, see also
     10 * http://www.opensource.org/licenses/bsd-license.php)
    1411 *
    15  * The OpenModelica software and the Open Source Modelica
    16  * Consortium (OSMC) Public License (OSMC-PL) are obtained
    17  * from OSMC, either from the above address,
    18  * from the URLs: http://www.ida.liu.se/projects/OpenModelica or 
    19  * http://www.openmodelica.org, and in the OpenModelica distribution.
    20  * GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
    2112 *
    22  * This program is distributed WITHOUT ANY WARRANTY; without
    23  * even the implied warranty of  MERCHANTABILITY or FITNESS
    24  * FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
    25  * IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
     13 * Redistribution and use in source and binary forms, with or without
     14 * modification, are permitted provided that the following conditions are
     15 * met:
    2616 *
    27  * See the full OSMC Public License conditions for more details.
     17 * * Redistributions of source code must retain the above copyright
     18 *   notice, this list of conditions and the following disclaimer.
    2819 *
    29  * Contributors:
    30  *   Wladimir Schamai, EADS Innovation Works 2009-2011
    31  *   Uwe Pohlmann, University of Paderborn 2009-2010
    32  *   Parham Vasaiely, EADS Innovation Works / Hamburg University of Applied Sciences 2009-2011
     20 * * Redistributions in binary form must reproduce the above copyright
     21 *   notice, this list of conditions and the following disclaimer in
     22 *   the documentation and/or other materials provided with the
     23 *   distribution.
     24 *
     25 * * Neither the name of Link�pings universitet nor the names of its
     26 *   contributors may be used to endorse or promote products derived from
     27 *   this software without specific prior written permission.
     28 *
     29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     30 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     31 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     32 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     33 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     34 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     35 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3340 */
    3441
     
    4249
    4350import org.omg.CORBA.ORB;
     51import org.openmodelica.simulation.core.omc.corba.OmcCommunication;
     52import org.openmodelica.simulation.core.omc.corba.OmcCommunicationHelper;
    4453
    4554// TODO: Auto-generated Javadoc
     
    376385        String args[] = {null};
    377386       
     387        /* set the CORBA read timeout to a larger
     388         * value as we send huge ammounts of data from OMC to MDT
     389         */
     390        System.setProperty("com.sun.CORBA.transport.ORBTCPReadTimeouts", "1:60000:300:1");
     391
     392       
    378393        ORB orb;
    379394        orb = ORB.init(args, null);
Note: See TracChangeset for help on using the changeset viewer.