swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java examples


From: Nick Collier
Subject: Re: Java examples
Date: Tue, 08 Feb 2000 12:51:23 -0600

I realize this doesn't actually address the concerns people might have
with Java in the context of Java Swarm, but there are some good
introductory Java material on the web. Sun's New-To-Java Programming
Center is a reasonable place to start -

http://developer.java.sun.com/developer/onlineTraining/new2java/

You can also get the full text (pdf, html, etc.) of _Thinking In Java_
by Bruce Eckel on line at -

http://www.eckelobjects.com/javabook.html

This is good on the basics and really strong on object oriented
programming. These resources should help a beginner with imports,
classpaths, compilation, and understanding javadoc API documentation,
all of which should be helpful in coming to grips with Java in Swarm (as
well as Ascape and Repast).

Nick

Murat Yildizoglu wrote:
> 
> I also think that if there was an introductory chapter on Java in the
> refbook or the better, the user book, this would be more than useful
> for the beginners (like me). Yes, I have written some time ago that I
> have opted at the end for ObjC (because of this problem) but I have
> difficulties to turn my back to java...
> 
> > >>>>> "CS" == Charles Staelin <address@hidden> writes:
> >
> > CS> The problem is not the OOP stuff,
> > CS> but rather what needs to be in the include statements and how CS>
> > particular methods in the various classes are properly referred to.
> >
> > You need to import each class or interface that you want to use, or
> > use a wildcard expression that does the same.
> >
> > At
> > http://www.santafe.edu/projects/swarm/swarmdocs/refbook-java/index.htm
> > l, under "All Classes" are all the interfaces and classes.  When you
> > click on one of these, the documentation for that feature is shown on
> > the right.  Note that the Java package is listed in small letters
> > above the interface/class name.  It is the combination of the package
> > and class/interface name that you use as the argument to import.
> >
> > Interfaces are the preferred data type for variables and argument
> > types.  Interfaces either have no suffix, or a "C" or "S" suffix.  The
> > common `using phase' methods are named by interfaces without a suffix.
> > The methods you use when you are describing an object to instantiate
> > it are in the interface with the "C" suffix (the `creating phase').
> > The "S", `setting phase' methods are usable in either using or
> > creating phase.
> >
> > The actual implementation classes have the suffix "Impl".  Whenever
> > you want to instantiate an object, you'll use one of these as an
> > argument to "new", and most of the time it will be with a class in the
> > using phase, not the creating phase.  (The reason for this is that
> > most using-phase implementation classes have `common usages' of just a
> > few arguments, that take care to run the creating phase, apply the
> > arguments, and then finish it in one step.)
> >
> > Typical code for creating an object and assigning to a variable is:
> >
> >   Something obj = new SomethingImpl (aZone);
> >
> >
> >                   ==================================
> >    Swarm-Support is for discussion of the technical details of the day
> >    to day usage of Swarm.  For list administration needs (esp.
> >    [un]subscribing), please send a message to <address@hidden>
> >    with "help" in the body of the message.
> 
> 
> _________________________________________
> 
> Murat Yildizoglu
> BETA-Theme
> (UMR 7522 - CNRS)
> PEGE
> Universite Louis Pasteur
> 61, Avenue de la ForĂȘt-Noire
> F-67085 Strasbourg Cedex
>    Tel. (33/0) 3 90 41 40 62
>    Fax. (33/0) 3 90 41 40 50
>    e-mail. address@hidden
>    www : http://cournot.u-strasbg.fr/yildi/
> Managing editor of e-JEMED:
>    http://cournot.u-strasbg.fr/jemed/
> 
> __________________________________________
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.

-- 
Nick Collier
Social Science Research Computing
University of Chicago
http://repast.sourceforge.net

address@hidden

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]