<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">problem solved! - if anyone interested in it, don't hesitate to ask ;)<div><br><div><div><div>On Jan 16, 2012, at 7:46 PM, Muhannad Ali wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><div>
<div class="BodyFragment">
<font size="2"><div class="PlainText">Well, I'm providing as attachment my CompositeActor code (which doesn't work properly) along with the model that should use it.<br>
Ideally the output should be: <br>
"<br>
Hello muhannad<br>
Hello ali<br>
no input<br>
"<br>
<br>
but what I get is:<br>
"<br>
Hello muhannad<br>
Hello ali<br>
Hello nothing<br>
"<br>
<br>
any help please?<br>
<br>
Thanks!<br>
<br>
Best regards,<br>
<br>
Muhannad<br>
<br>
</div></font>
</div>
<div class="BodyFragment">
<font size="2"><div class="PlainText"><br>
<br>
<br>
<br>
On Jan 15, 2012, at 10:49 PM, Muhannad Ali wrote:<br>
<br>
> Hello,<br>
> <br>
> I'm trying to develop a Composite actor with a PortParameter (let's name it: myPort) so that I can provide the input through an external actor (e.g. StringConst) and at the same time take benefit of the attributeChanged method every time the input changed in order to do some internal works.<br>
> <br>
> Would you help me please to understand how I should update the port expression's value whenever the input changes? I've tried myPort.setExpression(((StringToken) myPort.getPort().get(0)).stringValue()). But it did not work.<br>
> <br>
> Thanks!<br>
> <br>
> Muhannad<br>
<br>
</div></font>
</div>
</div><span><PortParameter.xml></span><span><HelloWorld.java></span></blockquote></div><br></div></div></body></html>