|
转自 http://extenduser.communityzero.com/extend?go=2148892
) b2 N1 @! i) N" @! M3 f8 b$ f0 _1 _8 u/ _
Extensim 开发商技术交流论坛
7 D: K8 h/ b0 q1 i& Z& y# Q) o- Y9 a
JEFFZZ111 老兄帮我问的关于ModL语言的一些知识,供大家参考。8 B- A) b# k1 `4 K# H
5 \4 t% h) H o$ a, y9 ?
“, z# N7 V' A5 b( F; ^, |3 V
about ModL language itself ; _; L& r7 ` q1 O8 p
Posted: Feb 4, 2009 12:25 PM 24 views
& b( n9 \1 w6 l+ b4 S G* l5 w
5 h( U5 Z: X9 e; y2 i1 q5 x. PHi ;
0 S A) I0 k! G, Q3 POne friend of mine mentioned about the topics of Object-oriented language.+ u" R) X+ Q7 V' K
Is ModL object-oritented? What is the strength of ModL , compared with other popular language , VC++, java , .NET....
1 R l" G, r& r" o2 P4 V
7 }3 W& L; x. D; X: HIs ModL only be uesd together with Extendsim development environment ?? Can we use ModL as a standalone language like VC++,etc. to develop software? x( w9 f% ?* [0 q6 A3 d% J- K
- z, x! |' ?, J& q, t0 S- C
What about the executiuon speed of the language , compared with other language..?
( E+ m) p4 ~9 `8 \4 [! g1 T
# _; w: U, b4 O0 J' I/ l+ bI found a comment on the website , it says: " MODL isn't exactly object oriented and it isn't! E: y6 s' V: N9 N
exactly procedural either and there is no encapsulation mechanism." , ...by Kramer.Newsreader@Gmail.Com
: C( ?$ ?1 r+ ?6 Oand another comment "But in general, proprietary languages (especially those tied to another; G' f/ K& R8 Q0 }. L0 g0 y
program) are usually not desirable because you can't find tools, such
+ M3 R h: E8 L( g/ |as unit testers, for them." . ....
/ z5 P6 n* T7 [' dI am puzzeld...
1 |. w( K) f+ ~
/ h9 e1 u! J' mRE: about ModL language itself
/ P3 ~/ q3 C+ ?" r2 G3 WPosted: Feb 5, 2009 12:28 AM 15 views
3 ]( \3 |8 A: y
/ q4 t! C7 y0 g) R: NIn reply to: about ModL language itself — Hi ... 6 {. c8 X" Z8 R! ?3 c& S+ U
posted by jeffzz111 on Feb 4, 2009 12:25 PM
9 v4 U. y: T* CModL uses a C syntax. It is close enough to C that, just yesterday, I copied in some C code to an equation block, made some changes so that it accessed the database, and it worked on the first try. Anyone familiar with C can work with ModL easily. The differences between ModL and C are designed to make programming easier, safer, and faster for simulation related problems. For example, we have built-in functions that support linked lists, probably the most-used data structure in discrete event simulation. ModL only works within the ExtendSim framework. We have looked into using other languages such as Java, but were unable to create the same level of interactivity and integration. With ModL the blocks only need to be recomplied when you change their structure. In Java based tools, the java code for the entire simulation has to be regeneated and the program recomplied/translated each time you change the model. I am sure you can see the advantage in our approach. While ModL has some object oriented features (such as overloading in some cases), it is not strictly object oriented. ExtendSim itself is developed in C++ and is created with object oriented techniques.! k# u# S& @8 `8 D& t6 ~# \, j" h. ^
I hope this helps" L$ A% N( [' n: x# @7 T K t
davek |
评分
-
查看全部评分
|