Re: [kepler-users] Add new actor to my local Kepler library

2012-02-08 Thread Ali, Muhannad
Well, I chose to put all my actors (Java classes) in the same suite. I am not sure if it's the correct way, but it works :) On Feb 7, 2012, at 6:01 PM, Muhannad Ali wrote: any answers please? On Feb 6, 2012, at 7:50 PM, Muhannad Ali wrote: Hi Christopher, thanks for your reply. I actually

Re: [kepler-users] Add new actor to my local Kepler library

2012-02-07 Thread Ali, Muhannad
any answers please? On Feb 6, 2012, at 7:50 PM, Muhannad Ali wrote: Hi Christopher, thanks for your reply. I actually developed my actors according to the link that you sent

[kepler-users] Add new actor to my local Kepler library

2012-02-06 Thread Ali, Muhannad
Hello, I have developed two actors in Eclipse, say ActorI and ActorII . When I run the Kepler using ActorII configurations, I cannot instantiate ActorI. How could I deploy my ad-hoc actor to MY local library (I don't want to let all Kepler's users to use it), so that I can use it later? I

Re: [kepler-users] Add new actor to my local Kepler library

2012-02-06 Thread Ali, Muhannad
Hi Christopher, thanks for your reply. I actually developed my actors according to the link that you sent (https://kepler-project.org/developers/teams/build/documentation/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse). The problem is: there is no instructions in that

[kepler-users] Sort Multidimensional Array

2012-01-29 Thread Ali, Muhannad
Hello, is there any way to sort a multi-dimensional array according to some column, e.g. sort(A, j). Or if I have two one-dimensional arrays A1, A2 and after sorting A1, I need that A2's elements that correspond to A1's ones have the updated indices like A1. Example: A1 = {2, 0, 3, 1} A2 =

[kepler-users] Build 2D Matrix

2012-01-22 Thread Ali, Muhannad
Hello, I'm trying to build a 2D Matrix and I enclose my way of doing it (see the attached Build2DMatrix.xml). I don't found this way that elegant :/ is there any other way to do it? I look at the documentation here (http://ptolemy.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/expressions.pdf) and

Re: [kepler-users] Arrays Multiplication

2012-01-22 Thread Ali, Muhannad
, just about anything that does multiplication will handle matrices. MultiplyDivide, Expression, FIR, etc. Math operations are polymorphic. Matrices are specified in MATLAB syntax in the expression language. E.g, in the Expression Evaluator: [0, 1;1, 0]*[2; 3] [3;2] Edward On 1/21/12 5:25 AM, Ali

Re: [kepler-users] Arrays Multiplication

2012-01-21 Thread Ali, Muhannad
/12 5:25 AM, Ali, Muhannad wrote: Hello, is there any actor that multiplies two arrays? I need to multiply a 2D array (mXn) with a vector(n). Thanks! Muhannad ___ Kepler-users mailing list Kepler-users@kepler-project.orgmailto:Kepler-users@kepler

Re: [kepler-users] Assign LSID to my ad-hoc CompositeActor

2012-01-18 Thread Ali, Muhannad
Any help please? On Jan 17, 2012, at 5:55 PM, Muhannad Ali wrote: Hello, anyone may help me to assign a unique LSID to my ad-hoc CompositeActor? so that I can change the icon of it. Thanks! Muhannad ___ Kepler-users mailing list

[kepler-users] Assign LSID to my ad-hoc CompositeActor

2012-01-17 Thread Ali, Muhannad
Hello, anyone may help me to assign a unique LSID to my ad-hoc CompositeActor? so that I can change the icon of it. Thanks! Muhannad ___ Kepler-users mailing list Kepler-users@kepler-project.org

Re: [kepler-users] PortParameter

2012-01-16 Thread Ali, Muhannad
problem solved! - if anyone interested in it, don't hesitate to ask ;) On Jan 16, 2012, at 7:46 PM, Muhannad Ali wrote: Well, I'm providing as attachment my CompositeActor code (which doesn't work properly) along with the model that should use it. Ideally the output should be: Hello muhannad

[kepler-users] PortParameter

2012-01-15 Thread Ali, Muhannad
Hello, 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

[kepler-users] Model Reference actor

2011-12-06 Thread Ali, Muhannad
Hi, anyone may help may with a simple example, how to use the Model Reference actor? I didn't get the idea from its documentation and I didn't understand how to pass parameters to the referenced model through top-level PortParameters. Any help would be appreciated! Best regards, Muhannad

[kepler-users] Web Service with Array as Output

2011-12-04 Thread Ali, Muhannad
Hi, I am trying to deal with the result of my web service, which is Array of String. I am getting failure: 1. when I use WSWithComplexTypes actor I get ptolemy.kernel.util.IllegalActionException: ArrayToken(Token[]) called with a an array of length less than 1. To create an array of length

[kepler-users] Connect to Oracle Database

2011-11-24 Thread Ali, Muhannad
Hi, I am trying to get data from Oracle Database using the Database Query Actor. I am using the Open Database Connection Actor to establish a database connection. I am always getting this error message: ptolemy.kernel.util.IllegalActionException: fire exception DB connection in