Directory c_runtime/java_interface/src/org/openmodelica/

Directory Created:
2009-10-14 10:02
Directory Deleted:
2012-02-23 08:08
Total Files:
0
Deleted Files:
22
Lines of Code:
0

[root]/c_runtime/java_interface/src/org/openmodelica
                        Folder removed from repo corba (0 files, 0 lines)
                            Folder removed from repo parser (0 files, 0 lines)
                                Folder removed from repo JavaDefinitions (0 files, 0 lines)
                        Folder removed from repo test (0 files, 0 lines)

Lines of Code

c_runtime/java_interface/src/org/openmodelica/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 81 (100.0%) 1763 (100.0%) 21.7
sjoelund.se 59 (72.8%) 1763 (100.0%) 29.8
adrpo 22 (27.2%) 0 (0.0%) 0.0

Most Recent Commits

adrpo 2012-02-23 08:08 Rev.: 11174

- GOT RID OF the old trunk/c_runtime and old templates SimCodeC.tpl/SimCodeFMU.tpl
- HIGHLY RECOMMENDED make clean
- renamed SimCodeXXX.tpl CodegenXXX.tpl
- merged the needed things from SimCodeC.tpl into CodegenQSS.tpl.
- all tests except the usual mishaps go.
- targeted all trunk/c_runtime references used in
Makefiles / C (Qt OMPlot) / Other files to their SimulationRuntime/ counterparts.

0 lines of code changed in 22 files:

  • c_runtime/java_interface/src/org/openmodelica: ComplexTypeSpec.java (del), IModelicaRecord.java (del), ModelicaAny.java (del), ModelicaArray.java (del), ModelicaBaseArray.java (del), ModelicaBoolean.java (del), ModelicaFunction.java (del), ModelicaFunctionReference.java (del), ModelicaHelper.java (del), ModelicaInteger.java (del), ModelicaObject.java (del), ModelicaObjectException.java (del), ModelicaOption.java (del), ModelicaReal.java (del), ModelicaRecord.java (del), ModelicaRecordException.java (del), ModelicaString.java (del), ModelicaTuple.java (del), ModelicaVoid.java (del), OMCModelicaRecord.java (del), SimpleTypeSpec.java (del), TypeSpec.java (del)
sjoelund.se 2010-01-28 12:41 Rev.: 4877

Java Interface:
- Fixed CLASS_EXTENDS typo for AstAsCorbaString
- Added better error messages for ModelicaRecord.java

11 lines of code changed in 1 file:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaRecord.java (+11 -3)
sjoelund.se 2010-01-27 14:30 Rev.: 4863

Java Interface:
- Optionally send types when creating records from Map (required for uniontypes to work correctly)

27 lines of code changed in 1 file:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaRecord.java (+27)
sjoelund.se 2010-01-18 15:35 Rev.: 4801

Java Interface:
- When handling uniontypes, we now add the _UT suffix so we can compile e.g. Absyn.mo definitions to a jar-file on the Windows platform.
- Removed the dependency on Sun JreSocketFactory (we won't need long CORBA timeouts if we send long strings through files anyway).

3 lines of code changed in 2 files:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaAny.java (+2 -2), ModelicaArray.java (+1 -1)
sjoelund.se 2010-01-18 12:20 Rev.: 4797

Java Interface
- Added parse(Reader) to ModelicaOption
+ Fixed the Java testsuite
- Added testcase for getAstAsCorbaString(filename)
+ Uses TankPID.mo, and a very short Java function.
+ Could also use CORBA to get the string, but that requires a little bit more code.
It's better to pass the string using filename anyway, since 32-bit architectures are limited to 16MB strings in OpenModelica.

5 lines of code changed in 1 file:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaOption.java (+5 -1)
sjoelund.se 2010-01-18 11:04 Rev.: 4794

Changes to the OMC-Java interface (Java code)
- Added OMCStringParser.parse(File f) functions.
- Made parse functions for Record, Array, Tuple public.
- Fixed ComplexTypeDefinitions for generic types.

23 lines of code changed in 4 files:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaAny.java (+11 -9), ModelicaArray.java (+6 -2), ModelicaRecord.java (+2 -2), ModelicaTuple.java (+4)
sjoelund.se 2010-01-13 17:48 Rev.: 4772

- Changes to the OMC-Java interface (Java code)
- Replaced the ANTLR grammar for parsing the CORBA communication
+ Max heap size reduced by 66% (down to 1GB from 3GB on 64-bit platforms)
+ Time to parse reduced to 33-50% of the original time taken (depending on typed or untyped parsing)
+ Added proper typed parsing also for list,tuple and Option
- Added the TypeSpec.java class to represent complex types fully
- Added missing JreSocketFactory
- Parsing an AST with type information is no longer done in two phases
- Updated the templated to generate jar files to reflect the changes above
- MSL 3.1 can now be parsed fully, with full type information
+ Typecasting needs to be done for tuples due to Java weaknesses,
but no longer using ModelicaAny.cast - standard (T)myTuple.get(0) should work.
+ The string is possibly too large for 32-bit OpenModelica to handle.
However, it is no longer manipulated within OpenModelica, so it might accept it. Needs to be tested.

534 lines of code changed in 17 files:

  • c_runtime/java_interface/src/org/openmodelica: ComplexTypeSpec.java (new 15), ModelicaAny.java (+183 -16), ModelicaArray.java (+42), ModelicaBoolean.java (+30), ModelicaFunction.java (+2 -2), ModelicaInteger.java (+12), ModelicaObject.java (-1), ModelicaObjectException.java (+1 -1), ModelicaOption.java (+28), ModelicaReal.java (+16 -5), ModelicaRecord.java (+87 -12), ModelicaString.java (+52 -10), ModelicaTuple.java (+38 -5), ModelicaVoid.java (+4 -3), OMCModelicaRecord.java (+1 -1), SimpleTypeSpec.java (new 12), TypeSpec.java (new 11)
sjoelund.se 2010-01-12 15:53 Rev.: 4769

- Changed to the OMC-Java interface (Java code)
+ Added printToBuffer to all ModelicaObjects so toString() is almost instant even for large strings
+ Changed the interface of ModelicaRecord slightly
- We now cache field names and types in order to reduce the memory consumption of an AST by ~75%
- All records now need to have all fieldnames and types set when created
+ OMCorba.g now generates line and column numbers for all errors

313 lines of code changed in 12 files:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaArray.java (+28 -21), ModelicaBoolean.java (+8 -3), ModelicaFunctionReference.java (+9 -3), ModelicaInteger.java (+10 -4), ModelicaObject.java (+4), ModelicaOption.java (+15 -5), ModelicaReal.java (+15 -5), ModelicaRecord.java (+189 -80), ModelicaString.java (+14 -8), ModelicaTuple.java (+14 -8), ModelicaVoid.java (+5), OMCModelicaRecord.java (+2 -3)
sjoelund.se 2009-10-27 13:23 Rev.: 4405

- JarCreator: Transforms backslashes of paths in zip-files to frontslashes. That way both javac.exe and java.exe work properly in Windows.
- testsuite/java/JavaExt.java: Escape the string so backslashes are parsed by OpenModelica.
- testsuite/{java,records}/rtest: Changed to an rtest that is not parallelized since Windows dll's hate that. (Also updated the mos-files since the old one requires // endResult
- testsuite/java/Makefile: Better Windows-support using JAVA_HOME
- c_runtime/java_interface/Makefile*: Better Windows-support using JAVA_HOME

2 lines of code changed in 2 files:

  • c_runtime/java_interface/src/org/openmodelica: ModelicaArray.java (+1 -1), ModelicaOption.java (+1 -1)
sjoelund.se 2009-10-14 10:02 Rev.: 4361

- Merged c_runtime from Bootstrapping
- Fixed simulation_result.cpp performance issues (<< endl flushes the buffer, \n does not)
- Added the Java-specific runtimes (C and Java)
- Changes to read_write.{c,h} for record-in-record, NORETCALL and MetaModelica types

845 lines of code changed in 19 files:

  • c_runtime/java_interface/src/org/openmodelica: IModelicaRecord.java (new 20), ModelicaAny.java (new 52), ModelicaArray.java (new 153), ModelicaBaseArray.java (new 11), ModelicaBoolean.java (new 40), ModelicaFunction.java (new 23), ModelicaFunctionReference.java (new 29), ModelicaHelper.java (new 14), ModelicaInteger.java (new 32), ModelicaObject.java (new 11), ModelicaObjectException.java (new 9), ModelicaOption.java (new 48), ModelicaReal.java (new 35), ModelicaRecord.java (new 174), ModelicaRecordException.java (new 9), ModelicaString.java (new 77), ModelicaTuple.java (new 44), ModelicaVoid.java (new 21), OMCModelicaRecord.java (new 43)
Generated by StatSVN 0.7.0