[kepler-dev] Help with Pop Up Box in Kepler

subhav mital mital.subhav at gmail.com
Thu Mar 26 08:01:25 PDT 2009


According to the instructions, it asks us to check out the Kepler 1.0
Version for creating actors. I have not tried it with the trunk.Do you see
any alternative solution to this problem?

Thanks!

On Tue, Mar 24, 2009 at 6:33 PM, Daniel Crawl <crawl at sdsc.edu> wrote:

>
> Hi Subhav,
>
> I can drag-n-drop this actor without errors after saving it
> in my library.
>
> Do you get the same error with kepler-trunk?
>
>  --dan
>
>
> subhav mital wrote:
>
>>
>>    Hey,
>>
>>    I followed the instructions given by David to create the actor and
>>    ran the usual commands from command line using ant to create my
>>    module.
>>
>>    To instantiate the actor in Kepler, I used org.UserIp.UserIp.
>>    However when I close Kepler and re-run it, I get some errors such as:
>>
>>
>>  "Change Failed: Cannot create entity without a class name.in <
>> http://name.in/> [external stream] at line 1 column 29.
>>
>>
>>
>>
>>  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>    /**
>>     *     */
>>    package org.UserIp;
>>
>>    import javax.swing.JOptionPane;
>>
>>    import ptolemy.actor.lib.LimitedFiringSource;
>>    import ptolemy.data.StringToken;
>>    import ptolemy.data.expr.Parameter;
>>    import ptolemy.data.type.BaseType;
>>    import ptolemy.kernel.CompositeEntity;
>>    import ptolemy.kernel.util.IllegalActionException;
>>    import ptolemy.kernel.util.NameDuplicationException;
>>
>>    /**
>>     * @author Subhav
>>     *
>>     */
>>    public class UserIp extends LimitedFiringSource {
>>    public Parameter user;
>>    /**
>>    * @param container
>>    * @param name
>>    * @throws NameDuplicationException
>>    * @throws IllegalActionException
>>    */
>>    public UserIp(CompositeEntity container, String name)
>>    throws NameDuplicationException, IllegalActionException {
>>    super(container, name);
>>    output.setTypeEquals(BaseType.STRING);
>>    user = new Parameter(this,"user");
>>    }
>>
>>    /* (non-Javadoc)
>>    * @see ptolemy.actor.lib.Source#fire()
>>    */
>>    @Override
>>    public void fire() throws IllegalActionException {
>>    super.fire();
>>    String reply = JOptionPane.showInputDialog("Please enter value");
>>      if (reply == null)
>>        return;
>>
>>      //output.s
>>      output.broadcast(new StringToken(reply));
>>    }
>>
>>    }
>>
>>  --------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>> Please help.
>>
>>
>>    Thanks!
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20090326/45b6168d/attachment.html>


More information about the Kepler-dev mailing list