女儿对于玩水,现在几乎到了痴迷的地步。用她婆婆的话来说:看到水就像拼命一样。
总结一下,女儿玩水有3种形式:
把水从一个容器里和另一个容器之间倒来倒去;
喝水再吐出来;
把玩具丢到水里面洗;
现在天气还冷,这样玩往往把衣裳打湿,成了她感冒的一个因素。
前两天,她在幼儿园里玩洗手盆里的水,把水打倒了,一天把自己的袖子打湿了,一天把自己的裤子打湿了。她回来说老师还“打”了她的。
我不知道孩子怎么对玩水这么感兴趣?
月份:2006年3月
关于用ArgoUML和AndroMDA协作工作的问题及答案(转)
(问题,转自:argouml用户邮件列表)
Date: Wed, 15 Mar 2006 15:58:51 +0530
From: ashikali.abdulkhader@wipro.com Add to Address Book Add Mobile Alert
To: users@argouml.tigris.org
Subject: RE: [argouml-users] How to assign an activity diagram to a controller class.
Yeah. It works fine now. !!!
Thank you all.
-Ashik
-----Original Message-----
From: Ludovic Maitre [mailto:ludovic.maitre@free.fr]
Sent: Wednesday, March 15, 2006 1:36 AM
To: users@argouml.tigris.org
Subject: Re: [argouml-users] How to assign an activity diagram to a
controller class.
Hi Dashing and Abdulkhader,
See issue http://argouml.tigris.org/issues/show_bug.cgi?id=4005 for
assigning the context of an activity diagram. Should this issue answer
to your question ?
Dashing Meng wrote:
> He,
> A interesting question,I am happy to hear any reply for it too.
>
> Dashing
>
> */ashikali.abdulkhader@wipro.com/* wrote:
>
> Hi All,
>
> I am currently facing the following problem while building the
> Online-Store application that comes with AndroMDA.
>
> My model is developed using ArgoUML. Currently I face two
> inter-related problems in building the Online-Store model using
> the Maven plug-in.
>
> 1) Initially I've created the Activity-Graph in the Use-case's
> namespace. But there is no way in ArgoUML by which I can assign
> the activity graph to a controller class (As it is there in
> Magicdraw) for calling deferrable call events in action states.
> Hence this resulted in Validation Error during model validation
> process.
>
> 2) The solution provided is to create the activity graph in the
> namespace of a Class. Hence I created the activity graph in the
> controller class's namespace and now am getting the validation
> error that says "A use case should have one and only one activity
> graph associated with it".
>
> Kindly help me how I should design my model in ArgoUML (Associate
> an Activity Graph with a Controller Class as expected by
AndroMDA)
> so that I would be able to integrate the model with AndroMDA for
> code generation.
>
> -Ashik
>
------------------------------------------------------------------------
> *From:* Dashing Meng [mailto:learndiary_dashing@yahoo.com]
> *Sent:* Monday, March 13, 2006 4:51 PM
> *To:* users@argouml.tigris.org
> *Subject:* RE: [argouml-users] How to assign an activity diagram
> to a controller class.
>
> I think an activity graph can be in the namespace of a operation
> of the class or a usecase's namespace.can't be in the namespace
of
> a class.
>
> Dashing
>
> */ashikali.abdulkhader@wipro.com/* wrote:
>
> Dashing,
>
> Thanks for your information..
>
> In my case the activity graph is already in a use-case's
> namespace.
>
> Now how do I map it to a class's namespace..Wouldn't it be
> redundant.
>
> If my understanding is right the behavior is for a usecase
and
> not for a class right?
>
> Pls corr ect me if I am wrong.
>
> Regards,
> Ashik
>
------------------------------------------------------------------------
> *From:* Dashing Meng [mailto:learndiary_dashing@yahoo.com]
> *Sent:* Monday, March 13, 2006 4:32 PM
> *To:* users@argouml.tigris.org
> *Subject:* Re: [argouml-users] How to assign an activity
> diagram to a controller class.
>
> Draw the state graph under class's namespace. It is: click a
> class at left side of window, then choose "create-> new
> statechart diagram" on the menu.
> It seems an operation can't be synchronized between the class
> diagram and the statechart diagram in both two directions?I
> don't know it very clear.
>
> Dashing
>
> */ashikali.abdulkhader@wipro.com/* wrote:
>
> Hi all,
> Does ArgoUML has the feature of assigning a
state/activity
> graph to a class so that action states can defer
> operations to the class?< /DIV>
> This is required for running my model built in AndroMDA.
> Regards,
> Ashik
答案:转自argouml问题跟踪系统:http://argouml.tigris.org/issues/long_list.cgi?issuelist=4005
Make activity graph context assignment easier
Issue #: 4005 Component: argouml Version: 0.20 Platform: PC
OS/Version: Windows XP Status: STARTED Issue type: ENHANCEMENT Priority: P3
Resolution: Assigned to: rastaman Reporter: waiyung
Subcomponent: Diagrams Target milestone:---
URL:
Summary: Make activity graph context assignment easier
Status whiteboard:
Description:
I am using the Argouml with Andromda extension.
One thing required by Andromda is to assign a controller class as the context of
an activity graph by adding a tag like these, as quote from Andromda's guide:
-----------
Add a tagged value to the controller, pointing to the use-case, like this:
@andromda.presentation.controller.usecase=My UseCase (the value is the name of
the use-case).
-----------
I noticed with or without setting this tag, the exported xmi file from argouml
has the following tag within the activity tag:
-----------
<UML:StateMachine.context>
<UML:UseCase xmi.idref = '.:0000000000000EB9'/>
</UML:StateMachine.context>
--------
where it references the Use Case.
Is there a way to change the context to point to the controller class?
Thanks,
wai yung------- Additional comments from Ludovic Maître Mon Feb 27 10:38:51 -0800 2006 -------
Hi Wai,
To assign an object as the context of an activty diagram i usually do the
following :
- create an use case
- create a class
- create an activity diagram for the use case
- select the activty GRAPH,
- in the property panel use the dropdown list named "Represented Modelelement"
to assign the context of the graph.
Is it what you want to do ?
------- Additional comments from Bob Tarling Mon Feb 27 12:11:28 -0800 2006 -------
Is it worth adding context menus to help with this?
Right click on diagram background or explorer element?------- Additional comments from wai yung Tue Feb 28 07:54:39 -0800 2006 -------
Yes. This is exactly what I want.
Thanks------- Additional comments from Ludovic Maître Tue Mar 14 14:07:23 -0800 2006 -------
*** Issue 4090 has been marked as a duplicate of this issue. ***
--------------------------------------------------------------------------------
AndroMDA 3.0 M3--开源的MDA方案即将可用(转帖)
现在的AndroMDA已经出到3.2了,这篇3.0 M3的作为收藏。
AndroMDA 3.0 M3--开源的MDA方案即将可用 (转自:http://www.chinaitpower.com/A/2005-03-01/148795.html)
作者:未知 时间:2005-03-01 12:12 出处:Blog 责编:chinaitpower
摘要:暂无
因为有些IDE不支持,一直没有完整留意UML的扩展机制,所以也就以为UML不很适合做MDA。比如生成Hibernate的hbm文件,一些属性的辅助属性比如lazy-load,应该放在Class图的哪里呢? 最近AndroMDA在TSS上发广告,介绍说AndroMDA 3.0 M3作为正式版前的最后一个MileStone已经推出。就连过去看了一下。原来除了StereoType,UML另有Tagged Value的机制,可以把一些属性附在类的方法和属性上。 AndroMDA的结构应该说比较开放和实际的 1.AndroMDA使用过程 1.程序员通过Poseidon or MagicDraw 绘制UML图并导出XMI 或者使用 Schema2XMI工具从数据库生成XMI 在绘制的过程中需要加入AndroMDA所需的StereoType和Table tag,column Tag等。 MagicDraw似乎比较难看,而Poseidon还提供AndroMDA的plug-in,什么功能还没细看。 2.用户通过Ant运行AndroMDA Ant脚本除了指明xmi文件外,另一个很重要的节点就是节点,指明了Hibernate,Spring所需的一切项目级资料比如生成目录,数据源名称等。 3.AndromMDA解释XMI为相对高层的概念,然后调用Cartridge的Velocity语法模板的生成目标代码文件。 目前提供EJB,Hibernate,Spring等几个Cartridge。 如果要扩展Cartridge,只需要按照文档所教的方法,从内到外进行各种层次的增加,修改和替换。 2.五个核心部件核心部件的设计代表了AndroMDA扩展的野心 1.Template Engines 目前使用Velocity作为模板语言,支持向其他语言的扩展。 2.MetaFascade 提供一个高层的Meta-Data访问API, 支持UML1.3、1.4、2.0等等语法的MOF model并可自行扩展。 3 Repositories 支持从XMI文件中读取MOF model,支持其他格式的扩展。 4.Cartridge 通过MetaFascade读取元模型,通过模板生成代码的核心。AndroMDA自带了Spring,Hibernate等Cartridge,也可自行扩展。 5.Translation-Libraries 把平台无关代码翻译成平台相关代码。比如Hibernate的getXXX()方法的HSQL语句,用者可以选择用Tagged Value写在模型里,也可以选择写成平台无关的OCL查询语言,然后用Query-Translation把它翻译成Hibernate HSQL,日后也可次翻译成EJB的EQL。 目前有Query和Valiations两个Library,亦可自行扩展。 3.AndroMDA的意义 AndroMDA带出的最重要的信息是,相对标准的,开源的MDA方案开始可用了,无数程序员不懈的代码自动生成的分散努力,有望纳入一个比较统一的框架内进行。 对比自己的简易版MDA方案: 1.模型的编写与维护 好处第一是, 以前的模型是自己制定的XML标准,现在是标准的UML语言,谁不想自己的东西标准化一点,谁不想被招安阿。 第二是模型可以使用图形化的工具维护模型了。 坏处也是,只能使用图形化工具维护模型了,没有了以前XML文件的文本级的简单。 2.代码的生成 大家暂时都是使用Velocity,只不过它有现成的Cartridge,估计还会不断增加,众人拾柴,比自己孤军奋战,一些大点的模板根本没法写(从经济学角度)好多了。 坏处就是以后修改扩展模板都要循规蹈矩,依足手续,比原来的随意扩展麻烦好多。 等他的正式版出来, 正好也是我们项目结束, 整理代码以作重用的好日子吧.
什么是AndroMDA?(翻译稿v1.0)
版权声明:
原文摘自:http://www.andromda.org/index.php?option=com_content&task=blogcategory&id=0&Itemid=42
本译文为“123行动”网站(http://www.123go.org.cn )版权所有,以<a href="http://creativecommons.org/licenses/by/2.0/">Creative Commons License</a>方式授权。欢迎转载,但请注明译文原始出处(http://www.123go.org.cn/disDiaryContentAction.do?searchDiaryID=1778&goalID=1778&naviStr=a10 )
另外,由于译者水平相当有限,错漏之处敬请指正,联系信箱:mdx-xx@tom.com,或在上述译文原始出处回复。 最新译文也会在
上述译文原始出处随时更新。
×××××××××××××××××××××××××××××××××××××××××××××××××××××××
什么是AndroMDA?
AndroMDA(发音:Andromeda)是一个依附于模型驱动架构范例(MDA)的可扩展的生成器框架。来自UML工具的模型能被转换成你喜欢的平台(J2EE, Spring, .NET)的可布署的组件。不像其它MDA工具包,AndroMDA带来许多已经做好的盒子,这些盒子征对现在的Axis, jBPM, Struts, JSF, Spring 和 Hibernate之类的开发工具包。AndroMDA也包含一个工具包来制造你自己的盒子或定制元盒子(已经存在的东西)。使用它,你可以用你喜欢的UML工具制造一个定制的代码生成器。
核心特性
AndroMDA当前带来下列特性:
模块设计:AndroMDA所有主要的构成块是可插接的,可以被改变来满足你的需要
支持主要的UML工具,像:MagicDraw, Poseidon, Enterprise Architect 和其它的UML工具
带来完全的UML1.4元模型(当前正在开发对UML2.0的支持)-你也有另外的选择,你可以带来你自己的元模型在MOF XMI里,并从基于它的模型产生代码
使用联系到元模型类的OCL 限制来验证输入的模型。预先配置的限制也保护你不犯大多数普通的建模错误,即添加你自己项目专用的限制
模型到模型的转换帮助你提高抽象水平,现在在java里你可以写你自己的转换,在AndroMDA的下一个主版本里,你也可以在其它的转换语言里写这种转换,例如在 QVT里-一种像 Atlas Transformation Language (ATL)的转换语言
能够使用模版产生任何种类的文本输出(像:源代码,数据库脚本,网页,O/R映射配置文件等等)-你教AndroMDA,它就能做!
模版是基于著名的模版引擎。 现在支持Velocity 和 FreeMarker
现存可用的征对普通企业架构(EJB, Spring, Hibernate, Struts, JSF, Axis, jBPM)的盒子
来自世界各地的队伍成员的全天候的支持:测量在forum.andromda.org的问题响应时间你会非常吃惊!论坛已经包含超过10,000篇文章。
盒子
非常像Eclipse,AndroMDA以插件架构为特色。AndroMDA本身基本上是一个转换引擎。为了支持任意的目标架构,你可以插入定制的转换。这些转换被打包成所谓的盒子。
AndroMDA 带来许多现存可用的盒子,比如:
Spring
EJB 2 / 3
Webservices
Hibernate
Struts
JSF
Java
XSD
你也可以写你自己的盒子来支持你自己的架构或框架。AndroMDA能够为任何你能够想像得到的架构和计算机语言产生输出。写作盒子的课程可以在AndroMDA.com上找到。
-littlebat
2006.3.15
the error of "a interesting" (3 articles refering)
"a interesting" ->should be "an interesting"
[intristin]
"an university"->should be "a university"
[ju:nu've:siti]
1, come from:http://www.sinoya.com/test.asp?DB_id=364&search_word=a&Topage=1
a, an 不定冠词(1)
a 用于一辅音音素开头的单词前;an 用于以元音音素开头的单词前。例如:
a worker, an underground worker
注意这里说的是音素,而不是字母,如 hour 的开首字母的“h”不发音,这个单词是以元音音素开头的,所以应用“an hour”。
再如 university 是以辅音音素开头的,所以应为“a university
************************************************************************************************
2, from:http://www.sinoexam.cn/quanneng/2006-02-19/6880.html
1. a/an(不定冠词)
--------------------------------------------------------------------------------
WWW.SINOEXAM.CN 2006-02-19
a用在以辅音字母开头,或以读做辅音的元音字母开头的单词前面:
a man一个男人
a university一所大学
a hat一顶帽子
a European一个欧洲人
a one-way street一条单行马路
an用在以元音字母(a,e,i,o,u)开头,或以不发音的h字母开头的单词前面:
an apple一个苹果
an island一个岛
an uncle一位大叔
an onion一个洋葱
an egg一个鸡蛋
an hour一小时
an还用在发音以元音开头的单个字母前面:
an L-plate一块“实习驾驶”车牌
an MP一个国会议员
an SOS一个呼救信号
an‘x’一个x字母、X形的东西或未知数
a/an没有性的变化:
a man一个男人
a woman一个女人
an actor一个男演员
an actress一个女演员
a table一张桌子
*************************************************************************************************
3, from:http://blog.hjenglish.com/tomatotree/articles/13347.html
『开心学语法1』冠词---;a;与;an的区别,你都会了吗?
Easy Grammar
参与奖励20沪元
灌水者扣除40沪元
看看这句话错在哪里?
Have you ever read the book of Daddy Long-legs?
It is really a interesting story.
--------------------------------------------------------------------------------
以下为回复可见内容
[语音版]
(试运行,不好之处,请各位多多包涵了!)
这个练习主要是考考大家对冠词的基础用法掌握的如何!
我们都知道,英语里头的冠词可分为定冠词,即the(在
元音音标前变音读the),和不定冠词,a/an;今天主要
来说说a与an的区别。
在辅音音标前用不定冠词的话,我们应该用a, 比如:
a car, a girl, a table 等; 而在元音音标前,
则要用an, 例如: an orange, an old man等等。
以上的句子里头“interesting”是以元音音标[i]开头的,
所以,不定冠词a应该改为an才对!
It is really an interesting story.
说到a与an的用法,大家还要注意区分元音字母与元音
音标的不同;有些单词是以元音字母开头,但音标是以
辅音音标开始的,这种情况下,我们不能用an , 而要
用 a; 大家来看看以下练习,用 a / an 填空,答案
在下期公布,敬请留意!
________ university ; _________ umbrella
_______ useful book; _________ hour
_______ honest boy; _________ answer
--------------------------------------------------------------------------------
[此贴子已经被作者于2004-12-15 23:46:50编辑过]
论坛帖子:http://www.hjbbs.com/dispbbs.asp?boardID=2&ID=195074
posted on 2005-02-08 18:22 tomatotree 阅读(193) 评论(1) 编辑 收藏
FeedBack:
# re: 『开心学语法1』冠词---;a;与;an的区别,你都会了吗?2005-12-20 08:40 | anonymity
very good
高兴,与一个十年来失去联系的同学重新联系上了
衣是新的好,人是旧的好。今晚与原来中专的同级老乡重逢。一行6人聚会,聊了不少话,高兴。
ArgoUML的开发者向AndroMDA项目提交Argo与Andro组合的教材
"Tom Morris" <tfmorris@gmail.com> Add to Address Book Add Mobile Alert
To: users@argouml.tigris.org
Date: Sat, 11 Mar 2006 18:45:43 -0500
Subject: [argouml-users] Instructions for using ArgoUML with AndroMDA tutorial
I've created a first draft of directions on how to use ArgoUML for the
AndroMDA "Getting started for Java" tutorial and the AndroMDA team has
included them as part of the tutorial. You can access them from the
AndroMDA home page (http://www.andromda.org) by clicking on the link in
the
Documentation box on the left hand side.
The tutorial requires an AndroMDA 3.2 snapshot (3.2 is still under
development) and it doesn't cover any web stuff (Struts or JSF), but it
does
provide a very detailed step-by-step for those who are new to AndroMDA
and
want to be led through the initial learning phase.
If you find problems or have suggestions on ways to improve the
instructions, please send me mail and I'll get them incorporated.
Tom
littlebat的网络资源集
主要涉猎:
育儿,软件系统分析、设计,J2EE技术,网站建设,开源,英语,人生思考等。
性格:
善于思考,行动力不够,意志容易随环境的改变而改变。喜欢与人交流、分享,也喜欢独自思索。
我的网络资源集
大家可以把自己常去的一些网站和一些精彩的网站记录下来,供自己以后查阅和大家分享。
希望大家在标题中能较好的反映记录的网站的主要特色,并且在内容中能作点简要的描述。
我想,由大家的心得形成的网址集比那些事先整理的网址集要有用吧。
建议,一个人用一篇日记来对自己涉猎的网址范围和自己做一个简要的介绍。然后在这篇日记下面的各篇评论中汇总自己的网址集。
What is AndroMDA?(翻译草稿)
What is AndroMDA?
AndroMDA (pronounced "Andromeda") is an extensible generator framework that adheres to the Model Driven Architecture (MDA) paradigm. Models from UML tools will be transformed into deployable components for your favorite platform (J2EE, Spring, .NET). Unlike other MDA toolkits, AndroMDA comes with a host of ready-made cartridges that target today's development toolkits like Axis, jBPM, Struts, JSF, Spring and Hibernate. AndroMDA also contains a toolkit for building your own cartridges or customize existing ones - the meta cartridge. Using it, you can build a custom code generator using your favorite UML tool.
什么是AndroMDA?
AndroMDA(发音:Andromeda)是一个依附于模型驱动架构范例(MDA)的可扩展的生成器框架。来自UML工具的模型能被转换成你喜欢的平台(J2EE, Spring, .NET)的可布署的组件。不像其它MDA工具包,AndroMDA带来许多已经做好的盒子,这些盒子是征对现在的Axis, jBPM, Struts, JSF, Spring 和 Hibernate之类的开发工具包。AndroMDA也包含一个工具包来制造你自己的盒子或定制元盒子(已经存在的东西)。使用它,你可以制造一个定制的、使用你喜欢的UML工具的代码生成器。
Core Features
AndroMDA currently comes with the following features:
Modular design: all major building blocks of AndroMDA are pluggable and can be exchanged to meet your needs
Support for major UML tools like MagicDraw, Poseidon, Enterprise Architect and more
Comes with the complete UML 1.4 metamodel (support for UML 2.0 is currently being developed) - alternatively, you can bring your own metamodel in MOF XMI and generate code from models based on it
Validates the input models using OCL constraints which are related to the metamodel classes. Comes with pre-configured constraints that protect you against the most common modeling mistakes - add your own project-specific constraints, too.
Model-to-model transformations help to raise abstraction level. Write your own transformations, currently in Java, or in any transformation language, e.g. the QVT-like Atlas Transformation Language (ATL), in the next major AndroMDA release.
Can generate any kind of text output using templates (source code, database scripts, web pages, O/R mapping configuration files, etc.) - you teach it, AndroMDA does it!
Templates are based on well-known template engines. Currently, Velocity and FreeMarker are supported
Ready-to-use cartridges for common enterprise architectures (EJB, Spring, Hibernate, Struts, JSF, Axis, jBPM)
Support around the clock by team members around the globe: Measure the response time for questions in forum.andromda.org and be amazed by it! The forum already contains more than 10.000 articles.
核心特性
AndroMDA当前带来下列特性:
模块设计:AndroMDA所有主要的构成块是可插接的,可以被改变来满足你的需要
支持主要的UML工具,像:MagicDraw, Poseidon, Enterprise Architect 和其它的UML工具
带来完全的UML1.4元模型(当前正在开发对UML2.0的支持)-你也有另外的选择,你可以带来你自己的元模型在MOF XMI里,并从基于它的模型产生代码
使用联系到元模型类的OCL限制来验证输入的模型。预先配置的限制也保护你不犯大多数普通的建模错误,即添加你自己项目专用的限制
模型到模型的转换帮助你提高抽象水平,现在在java里你可以写你自己的转换,在AndroMDA的下一个主版本里,你也可以在其它的转换语言里写这种转换,例如在 QVT里-一种像 Atlas Transformation Language (ATL)的转换语言
能够使用模版产生任何种类的文本输出(像:源代码,数据库脚本,网页,O/R映射配置文件等等)-你教AndroMDA,它就能做!
模版是基于著名的模版引擎。 现在支持Velocity 和 FreeMarker
现存可用的征对普通企业架构(EJB, Spring, Hibernate, Struts, JSF, Axis, jBPM)的盒子
来自世界各地的AndroMDA队伍成员的全天候的支持:测量在forum.andromda.org的问题响应时间你会非常吃惊!论坛已经包含超过10,000篇文章。
Cartridges
Very much like Eclipse, AndroMDA features a plug-in architecture. AndroMDA itself basically is a transformation engine. To support arbitrary target architectures, you can plug-in custom transformations. These transformations are packaged as so-called cartridges.
AndroMDA comes with a host of ready-to-use cartridges such as:
Spring
EJB 2 / 3
Webservices
Hibernate
Struts
JSF
Java
XSD
You can also write your own cartridge to support your own architecture or framework. AndroMDA can produce output for any architecture and computer language you might imagine. Courses for cartridge writing are available at AndroMDA.com.
盒子
非常像Eclipse,AndroMDA以插件架构为特色。AndroMDA本身基本上是一个转换引擎。为了支持任意的目标架构,你可以插入定制的转换。这些转换被打包成所谓的盒子。
AndroMDA 带来许多现存可用的盒子,比如:
Spring
EJB 2 / 3
Webservices
Hibernate
Struts
JSF
Java
XSD
你也可以写你自己的盒子来支持你自己的架构或框架。AndroMDA能够为任何你能够想像得到的架构和计算机语言产生输出。写作盒子的课程可以在AndroMDA.com上找到。