<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.</title>
		<atom:link href="http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 03:31:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-56822</guid>
					<title><![CDATA[Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-56822</link>
					<pubDate>Mon, 28 May 2012 16:28:58 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p><code><br />
import com.cycling74.max.MaxObject;</code></p>
<p>[...]<br />
ArrayList<maxobject> myObjectsList = new ArrayList</maxobject><maxobject>();</maxobject></p>
<p>[...]<br />
myObjectsList.add( new MaxObject("myAbstraction") );<br /></p>
<p>This is basic but I have an error because I&#8217;m missing something for sure.</p>
<p>The error is :<br />
com.cycling74.max.MaxObject is abstract; cannot be instantiated<br />
                myObjectsList.add( new MaxObject(&#8220;myAbstraction&#8221;) );<br />
                                   ^</p>
<p>anyone to unstick me ??</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203650</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203650</link>
					<pubDate>Mon, 28 May 2012 16:32:19 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>okay.<br />
Nick answered here: <a href="http://cycling74.com/forums/topic.php?id=23901" rel="nofollow">http://cycling74.com/forums/topic.php?id=23901</a> (2 years ago)</p>
<p>So How can I place an abstraction via JAVA &#8230; ?<br />
It is okay with JS but I&#8217;d need stuff via JAVA unavailable with JS (afaik) (related to <a href="http://cycling74.com/forums/topic.php?id=40213" rel="nofollow">http://cycling74.com/forums/topic.php?id=40213</a>)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203709</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203709</link>
					<pubDate>Mon, 28 May 2012 16:32:19 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>okay.<br />
Nick answered here: <a href="http://cycling74.com/forums/topic.php?id=23901" rel="nofollow">http://cycling74.com/forums/topic.php?id=23901</a> (2 years ago)</p>
<p>So How can I place an abstraction via JAVA &#8230; ?<br />
It is okay with JS but I&#8217;d need stuff via JAVA unavailable with JS (afaik) (related to <a href="http://cycling74.com/forums/topic.php?id=40213" rel="nofollow">http://cycling74.com/forums/topic.php?id=40213</a>)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203651</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203651</link>
					<pubDate>Mon, 28 May 2012 17:49:30 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>You create a class which extends MaxObject, as you would with any abstract class.  </p>
<p>public class Foo extends MaxObject<br />
{<br />
&#8230;<br />
}</p>
<p>This class is the class you call via the mxj object in your patcher.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203710</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203710</link>
					<pubDate>Mon, 28 May 2012 17:49:30 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>You create a class which extends MaxObject, as you would with any abstract class.  </p>
<p>public class Foo extends MaxObject<br />
{<br />
&#8230;<br />
}</p>
<p>This class is the class you call via the mxj object in your patcher.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203653</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203653</link>
					<pubDate>Mon, 28 May 2012 17:56:45 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>It means I would have to create one class/mxj per abstraction created ?<br />
this is insane in my case (and it probably means I missed smthg :/)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203711</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203711</link>
					<pubDate>Mon, 28 May 2012 17:56:45 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>It means I would have to create one class/mxj per abstraction created ?<br />
this is insane in my case (and it probably means I missed smthg :/)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203655</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203655</link>
					<pubDate>Mon, 28 May 2012 18:30:52 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>No, this would be your top-level object.  Your abstractions would be contained within this object.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203712</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203712</link>
					<pubDate>Mon, 28 May 2012 18:30:52 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>No, this would be your top-level object.  Your abstractions would be contained within this object.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203657</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203657</link>
					<pubDate>Mon, 28 May 2012 18:39:36 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>yep I got it.</p>
<p>I would extend MaxObject as you proposed (and as I&#8217;m doing) for each abstractions or type of abstractions ?</p>
<p>I mean.<br />
(considering this is not the best solution, probably..)<br />
One abstraction = One type of object = One visuals &#038; sounds object<br />
I need to create sometimes a lot of objects.</p>
<p>How would I apply this to my case?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203713</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203713</link>
					<pubDate>Mon, 28 May 2012 18:39:36 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>yep I got it.</p>
<p>I would extend MaxObject as you proposed (and as I&#8217;m doing) for each abstractions or type of abstractions ?</p>
<p>I mean.<br />
(considering this is not the best solution, probably..)<br />
One abstraction = One type of object = One visuals &#038; sounds object<br />
I need to create sometimes a lot of objects.</p>
<p>How would I apply this to my case?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203658</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203658</link>
					<pubDate>Mon, 28 May 2012 19:20:35 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>I don&#8217;t think you would need to extend MaxObject for each of your abstractions.  The class that extends MaxObject can contain any number of Java objects, even ones that wrap around JitterObjects.</p>
<p>The only class that needs to extend MaxObject would be the one that you use to initialize your entire system, via mxj.  This object would also be responsible for messaging all of its child object, so you could create a messaging structure with inlets/outlets and functions to do so &#8211;  this exposes the child objects to messages from the patcher environment.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203714</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203714</link>
					<pubDate>Mon, 28 May 2012 19:20:35 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>I don&#8217;t think you would need to extend MaxObject for each of your abstractions.  The class that extends MaxObject can contain any number of Java objects, even ones that wrap around JitterObjects.</p>
<p>The only class that needs to extend MaxObject would be the one that you use to initialize your entire system, via mxj.  This object would also be responsible for messaging all of its child object, so you could create a messaging structure with inlets/outlets and functions to do so &#8211;  this exposes the child objects to messages from the patcher environment.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203659</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203659</link>
					<pubDate>Mon, 28 May 2012 19:31:40 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>I got it.<br />
But basically, how to initialize and call my abstractions from JAVA without creating a new MaxObject ?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203715</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203715</link>
					<pubDate>Mon, 28 May 2012 19:31:40 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>I got it.<br />
But basically, how to initialize and call my abstractions from JAVA without creating a new MaxObject ?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203660</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203660</link>
					<pubDate>Mon, 28 May 2012 19:53:21 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>Just construct them within the constructor of your top-level MaxObject, or in response to a function call via a Max message.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203716</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203716</link>
					<pubDate>Mon, 28 May 2012 19:53:21 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>Just construct them within the constructor of your top-level MaxObject, or in response to a function call via a Max message.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203661</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203661</link>
					<pubDate>Mon, 28 May 2012 20:07:49 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>Jesse, I don&#8217;t know another way to &#8220;construct&#8221; them than to use :</p>
<p><code>new MaxObject("myAbstraction")</code></p>
<p>and this is particularly that one that doesn&#8217;t work :-/</p>
<p>I got the concept, I guess<br />
But I cannot do that because of the error :-/</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203717</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203717</link>
					<pubDate>Mon, 28 May 2012 20:07:49 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>Jesse, I don&#8217;t know another way to &#8220;construct&#8221; them than to use :</p>
<p><code>new MaxObject("myAbstraction")</code></p>
<p>and this is particularly that one that doesn&#8217;t work :-/</p>
<p>I got the concept, I guess<br />
But I cannot do that because of the error :-/</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203662</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203662</link>
					<pubDate>Mon, 28 May 2012 22:13:21 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>Yes, I can see that you&#8217;re still confused. </p>
<p>MaxObject and MSPObject are an abstract classes that one extends to create Java objects that can live at the level of the patcher, instantiated through MXJ.</p>
<p>The issue appears to be the &#8220;abstraction&#8221; which still has not been clearly defined.  If I understand what you&#8217;re wanting to do, this abstraction is a Java class that wraps Jitter objects and sound related data.  </p>
<p>If this is right you should take a look at the JitterObject class, which could be contained inside your abstractions.  JitterObject allows you to instantiate Jitter objects that reside inside your Java code, and not in the patcher.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203718</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203718</link>
					<pubDate>Mon, 28 May 2012 22:13:21 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>Yes, I can see that you&#8217;re still confused. </p>
<p>MaxObject and MSPObject are an abstract classes that one extends to create Java objects that can live at the level of the patcher, instantiated through MXJ.</p>
<p>The issue appears to be the &#8220;abstraction&#8221; which still has not been clearly defined.  If I understand what you&#8217;re wanting to do, this abstraction is a Java class that wraps Jitter objects and sound related data.  </p>
<p>If this is right you should take a look at the JitterObject class, which could be contained inside your abstractions.  JitterObject allows you to instantiate Jitter objects that reside inside your Java code, and not in the patcher.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203664</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203664</link>
					<pubDate>Tue, 29 May 2012 07:48:02 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jesse.<br />
an abstraction in my case here, wouldn&#8217;t be JAVA stuff, but a &#8220;basic&#8221; abstraction as defined in Max patchers (I mean, that one : <a href="http://cycling74.com/docs/max6/dynamic/c74_docs.html#abstractions" rel="nofollow">http://cycling74.com/docs/max6/dynamic/c74_docs.html#abstractions</a></p>
<p>The idea would be to create abstractions on a side and to call them (I mean, to create them in a patcher) via JAVA.<br />
I have that working with JS but because I&#8217;d need to have a powerful communication system between my core (here JS, wanting JAVA) and all the abstractions, I thought about JAVA compiled stuff would be more fast</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203719</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203719</link>
					<pubDate>Tue, 29 May 2012 07:48:02 +0000</pubDate>
					<dc:creator>Julien Bayle</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Jesse.<br />
an abstraction in my case here, wouldn&#8217;t be JAVA stuff, but a &#8220;basic&#8221; abstraction as defined in Max patchers (I mean, that one : <a href="http://cycling74.com/docs/max6/dynamic/c74_docs.html#abstractions" rel="nofollow">http://cycling74.com/docs/max6/dynamic/c74_docs.html#abstractions</a></p>
<p>The idea would be to create abstractions on a side and to call them (I mean, to create them in a patcher) via JAVA.<br />
I have that working with JS but because I&#8217;d need to have a powerful communication system between my core (here JS, wanting JAVA) and all the abstractions, I thought about JAVA compiled stuff would be more fast</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203665</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203665</link>
					<pubDate>Tue, 29 May 2012 16:35:32 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>In that case you want to use the MaxPatcher and MaxBox objects within Java.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203720</guid>
					<title><![CDATA[Re: Calling/placing abstractions in my Patcher via JAVA give error  &#8230;.]]></title>
					<link>http://cycling74.com/forums/topic/callingplacing-abstractions-in-my-patcher-via-java-give-error/#post-203720</link>
					<pubDate>Tue, 29 May 2012 16:35:32 +0000</pubDate>
					<dc:creator>Jesse</dc:creator>

					<description>
						<![CDATA[
						<p>In that case you want to use the MaxPatcher and MaxBox objects within Java.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

