<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">James,<div class="">You are correct. The Export / Import is not true sub-classing in the Alice system. It is instead more of an export and merge new features into an existing class. It was decided by the team that this concept was better handled in the Alice - NetBeans curriculum - students import their projects into NetBeans where the Project is now a true Java project, with access to the entire Java Class Library and a inheritance would be better implemented.</div><div class=""><br class=""></div><div class="">All the best,</div><div class="">Don Slater</div><div class=""><br class=""></div><div class="">Alice Project<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 13, 2020, at 3:39 PM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Don, thanks. One more question. It looks to me like you can’t export classes in Alice 3 at all. All you can do is customize existing classes, and export the customizations. You can’t create your own classes. For example, you can’t create one subclass of Fox
called FancyFox and another subclass called FancierFox, two classes that do different things, so that some of your objects are FancyFoxes and some are FancierFoxes. Because when you import a class, or even instantiate a class from “My Classes” in the gallery,
it does not create a new class; it just adds the custom methods, etc., to the built-in Fox class.
<div class=""><br class="">
</div>
<div class="">Or am I misunderstanding this?</div>
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<div class="">On Jan 13, 2020, at 1:05 PM, Donald Slater <<a href="mailto:don@alice.org" class="">don@alice.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Jim,</div>
<div class="">This is a great question, and one that should work better than my hack. </div>
<div class=""><br class="">
</div>
Alice 3 does provide access to class constructors (Go to Window: Preferences and select the
<b class="">Constructors</b> menu option - see attached screen shot)
<div class=""><br class="">
</div>
<div class="">And in fact the constructor for that Person class, when enabled, allows you to design your avatar.</div>
<div class=""><br class="">
</div>
<div class="">Unfortunately, when you export that class, the modified constructor does not get exported with the rest of the class.I hope that this is something we can fix in future releases, as it would be the more elegant, and OOP-based, solution.</div>
<div class=""><br class="">
</div>
<div class="">I am sorry, but thank you for identifying this issue for us.</div>
<div class=""><br class="">
</div>
<div class="">All the best,</div>
<div class="">Don Slater</div>
<div class=""><br class="">
</div>
<div class="">Alice Project</div>
<div class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><span id="cid:FCFA6AB0-19A3-46A0-80BD-ADB31615FCB0@sdsw.org" class=""><cTor_Preference.png></span><br class="">
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 13, 2020, at 9:44 AM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Don, thanks. In Java, you can extend a class with the only new thing being a new constructor that sets all the property values the way you want them. Is there a way to do this in Alice 3?
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<div class="">On Jan 12, 2020, at 7:47 PM, Donald Slater <<a href="mailto:dslater@andrew.cmu.edu" class="">dslater@andrew.cmu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">James,
<div class="">You are correct, that because the Alice 3 Export function exports essentially a Java class, methods, functions, class properties of the class will be exported. But not the particular characteristics fo an object of that class.</div>
<div class=""> </div>
<div class="">If Alice allowed the creation of properties and variables of the type adultPersonResource, teenPersonResource, childPersonResource, etc, then one could create a class property of that resource with the specific values of the avatar, which would
be exported with the class. That may be worth investigating for future releases.</div>
<div class=""><br class="">
</div>
<div class="">But I did come up with a work-around, a hack, actually ;-) Using the TeenPerson class</div>
<div class=""><br class="">
</div>
<div class="">1) Create a method for the person class, name it something like setMyResource…</div>
<div class="">2) Inside that method, use the setTeenPersonResource to build the avatar. (This will not change the appearance of the avatar in the scene until the method setMyResource is called). See the attached screen shot.</div>
<div class="">3) You may now export this class, and the setMyResource method, with the specific values for the avatar will be exported as part of this method.</div>
<div class="">4) When you import this class into a new project, call the setMyResource method as the first line of code, and the avatar in the scene will take on the desired appearance at runtime.</div>
<div class=""><br class="">
</div>
<div class="">I have also attached a sample project that you might play with.</div>
<div class=""><br class="">
</div>
<div class="">It is a hack, but it is something until until we come up with a more elegant solution.</div>
<div class=""><br class="">
</div>
<div class="">Lete me know if you have any questions.</div>
<div class=""><br class="">
</div>
<div class="">All the best,</div>
<div class="">Don Slater</div>
<div class=""><br class="">
</div>
<div class="">Alice Project</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div class=""><span id="cid:766df140-67b3-4b74-b90e-89ef1a51fbc0@namprd06.prod.outlook.com" class=""><p1.png></span>
</div>
<div style="word-wrap:break-word; line-break:after-white-space" class="">
<meta content="text/html; charset=us-ascii" class="">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 12, 2020, at 9:03 AM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<meta content="text/html; charset=utf-8" class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello, everyone. I have made the jump from Alice 2 to Alice 3. Is there any guide to Alice 3 for long-time users of Alice 2? I am hitting a problem right away. In Alice 2, I had each of
my students create an “avatar” using the He/she builder, export the object, and use it in every one of their homework assignments. I can’t find a way to export a carefully crafted person in Alice 3 for use in other projects. The class export system seems to
be completely different.
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
To change settings or unsubscribe visit:<br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<span id="cid:762634981482A8459E44044E5A96061B@namprd06.prod.outlook.com" class=""><ResourceImportDemo.a3p></span></div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
To change settings or unsubscribe visit:<br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
To change settings or unsubscribe visit:<br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">To change settings or unsubscribe visit:<br class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</div></blockquote></div><br class=""></div></body></html>