 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bruno Beloff Guest
|
Posted: Fri Dec 19, 2003 11:18 am Post subject: Terminology for Java Object Types? |
|
|
Hi
Here's a question on terminology: I'm documenting some Java applications,
and I'm looking for a phrase or phrases that distinguish between two types
of object. Maybe there's a standard, accepted term here, or maybe you can
think of an appropriate term:
Type 1 - Objects that have no instance variables, have instance variables
that are primitives, or instance variables that are standard (those of
java.lang, java.util, etc. that implement serializable). These objects can
be flattened predictably, because they are at most one object deep.
Type 2 - Objects that have instance variables of application classes.
Objects of these classes introduce arbitrary, even circular object networks.
The object depth of these objects is arbitrary. These objects can be
flattened, but not trivially.
Does anyone have a good phrase for "Type 1" and "Type 2", or a phrase that
identifies this distinction?
Cheers,
Bruno.
|
|
| Back to top |
|
 |
Chris Smith Guest
|
Posted: Fri Dec 19, 2003 3:33 pm Post subject: Re: Terminology for Java Object Types? |
|
|
Bruno Beloff wrote:
| Quote: | Here's a question on terminology: I'm documenting some Java applications,
and I'm looking for a phrase or phrases that distinguish between two types
of object. Maybe there's a standard, accepted term here, or maybe you can
think of an appropriate term:
Type 1 - Objects that have no instance variables, have instance variables
that are primitives, or instance variables that are standard (those of
java.lang, java.util, etc. that implement serializable). These objects can
be flattened predictably, because they are at most one object deep.
Type 2 - Objects that have instance variables of application classes.
Objects of these classes introduce arbitrary, even circular object networks.
The object depth of these objects is arbitrary. These objects can be
flattened, but not trivially.
Does anyone have a good phrase for "Type 1" and "Type 2", or a phrase that
identifies this distinction?
|
Since this distinction is rather arcane for most of the world, you'll
have to make up your own words. I'd initially think to call type 1
objects with "simple state" and type 2 objects with "complex state".
Just a thought, though.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
|
| Back to top |
|
 |
Bruno Beloff Guest
|
Posted: Fri Dec 19, 2003 4:48 pm Post subject: Re: Terminology for Java Object Types? |
|
|
That'll do fine. Thank you!
Bruno.
On 19/12/03 3:33 pm, in article [email]MPG.1a4cc818e7188bae98984d (AT) news (DOT) pop4.net[/email],
"Chris Smith" <cdsmith (AT) twu (DOT) net> wrote:
| Quote: | Since this distinction is rather arcane for most of the world, you'll
have to make up your own words. I'd initially think to call type 1
objects with "simple state" and type 2 objects with "complex state".
Just a thought, though.
|
|
|
| Back to top |
|
 |
Steve Horsley Guest
|
Posted: Fri Dec 19, 2003 9:09 pm Post subject: Re: Terminology for Java Object Types? |
|
|
Bruno Beloff wrote:
| Quote: | Hi
Here's a question on terminology: I'm documenting some Java applications,
and I'm looking for a phrase or phrases that distinguish between two types
of object. Maybe there's a standard, accepted term here, or maybe you can
think of an appropriate term:
Type 1 - Objects that have no instance variables, have instance variables
that are primitives, or instance variables that are standard (those of
java.lang, java.util, etc. that implement serializable). These objects can
be flattened predictably, because they are at most one object deep.
Type 2 - Objects that have instance variables of application classes.
Objects of these classes introduce arbitrary, even circular object networks.
The object depth of these objects is arbitrary. These objects can be
flattened, but not trivially.
Does anyone have a good phrase for "Type 1" and "Type 2", or a phrase that
identifies this distinction?
Cheers,
Bruno.
|
The term "leaf object" comes to mind. I suppose from tree terminology
where a leaf node has no children. So "childless" is another possibility.
Steve
|
|
| Back to top |
|
 |
David Postill Guest
|
Posted: Fri Dec 19, 2003 10:26 pm Post subject: Re: Terminology for Java Object Types? |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In article <BC088EFA.AB15%bruno.beloff (AT) opmath (DOT) com>, on Fri, 19 Dec 2003 11:18:18 +0000, Bruno Beloff
<bruno.beloff (AT) opmath (DOT) com> wrote:
| Quote: | Hi
Here's a question on terminology: I'm documenting some Java applications,
and I'm looking for a phrase or phrases that distinguish between two types
of object. Maybe there's a standard, accepted term here, or maybe you can
think of an appropriate term:
Type 1 - Objects that have no instance variables, have instance variables
that are primitives, or instance variables that are standard (those of
java.lang, java.util, etc. that implement serializable). These objects can
be flattened predictably, because they are at most one object deep.
Type 2 - Objects that have instance variables of application classes.
Objects of these classes introduce arbitrary, even circular object networks.
The object depth of these objects is arbitrary. These objects can be
flattened, but not trivially.
Does anyone have a good phrase for "Type 1" and "Type 2", or a phrase that
identifies this distinction?
|
Hmm. Maybe "Shallow" and "Deep". That's what is used as terminology when copying
these kinds of objects.
For example a shallow copy will make a complete copy of an object and any primitive
attribute. It will not, however, make copies of any high-level object attributes.
Instead, it points those attributes at the reference in the original object.
<davidp />
- --
David Postill
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3 - not licensed for commercial use: www.pgp.com
Comment: Get key from pgpkeys.mit.edu:11370
iQA/AwUBP+LuN3xp7q1nhFwUEQJtSgCfcXohMML3iNH6gso/WKV90TlAAuYAnj+J
Jy0qnAlct9yCUSjKZjpAisa7
=DxIC
-----END PGP SIGNATURE-----
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|