📄 swarm.defobj.sgml.reference.html
字号:
often do. These kinds of conventions are the focus of this section; following sections discuss aspects of Swarm Objective C style that depend on specific software support.</P><P>More to come... For now, see <AHREF="swarm.library.sgml.appendix.html">Library Interface Conventions</A> for some of this information, and Swarm tutorials for much of the rest.</P></DIV></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.DEFOBJ.SGML.SECT1.ADVUSAGE">4. Advanced Usage Guide</A></H1><P>Empty</P></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.DEFOBJ.SGML.SECT1.SUBCLASS">5. Subclassing Reference</A></H1><P>The defobj library currently includes the CreateDrop and Object_s superclasses used by other libraries. For user objects in Swarm simulations the SwarmObject superclass in the objectbase library packages all required behavior of these superclasses into a single, simpler superclass.</P><P>The defobj library also provides support for custom-generated classes, such as those which implement separate phases of the standard create protocol. (See generated phase classes in the Advanced Usage Guide.) Subclassing from custom-generated classes is still not officially supported, because the framework for custom class generation is still being finalized. Custom-generated classes are currently used only in the defobj, collections, and activity libraries; these libraries document the specific classes that provide subclassing support.</P><P>In general, classes that implement a library are not automatically available for use as superclasses. Any library must document those specific superclasses that are valid for user classes to subclass from, along all the rules that a user subclass must follow when implementing new behavior.</P></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.DEFOBJ.SGML.SECT1.DESIGN">6. Interface Design Notes</A></H1><P>Nothing</P></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="SWARM.DEFOBJ.SGML.SECT1.IMPL">7. Implementation Notes</A></H1><P>Nothing</P></DIV></DIV><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="swarm.defobj.archiver.protocol.html">Archiver</A> — High level abstract serialization interface.</DT><DT><AHREF="swarm.defobj.arguments.protocol.html">Arguments</A> — A class that provides customizable command line argument parsing support</DT><DT><AHREF="swarm.defobj.behaviorphase.protocol.html">BehaviorPhase</A> — Created class which implements a phase of object behavior.</DT><DT><AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A> — Declare that a defined type supports creation.</DT><DT><AHREF="swarm.defobj.copy.protocol.html">Copy</A> — Copy all state defined as part of object.</DT><DT><AHREF="swarm.defobj.create.protocol.html">Create</A> — Create an instance of a type with optional customization.</DT><DT><AHREF="swarm.defobj.createdclass.protocol.html">CreatedClass</A> — Class with variables and/or methods defined at runtime.</DT><DT><AHREF="swarm.defobj.customize.protocol.html">Customize</A> — Create-phase customization.</DT><DT><AHREF="swarm.defobj.definedclass.protocol.html">DefinedClass</A> — Class which implements an interface of a type.</DT><DT><AHREF="swarm.defobj.definedobject.protocol.html">DefinedObject</A> — Object with defined type and implementation.</DT><DT><AHREF="swarm.defobj.drop.protocol.html">Drop</A> — Deallocate an object allocated within a zone.</DT><DT><AHREF="swarm.defobj.error.protocol.html">Error</A> — A condition which prevents further execution.</DT><DT><AHREF="swarm.defobj.eventtype.protocol.html">EventType</A> — A report of some condition detected during program execution.</DT><DT><AHREF="swarm.defobj.farguments.protocol.html">FArguments</A> — A language independent interface to dynamic call argument construction.</DT><DT><AHREF="swarm.defobj.fcall.protocol.html">FCall</A> — A language independent interface to dynamic calls.</DT><DT><AHREF="swarm.defobj.getname.protocol.html">GetName</A> — Get name which identifies object in its context of use.</DT><DT><AHREF="swarm.defobj.getowner.protocol.html">GetOwner</A> — Get object on which existence of object depends.</DT><DT><AHREF="swarm.defobj.hdf5.protocol.html">HDF5</A> — HDF5 interface</DT><DT><AHREF="swarm.defobj.hdf5archiver.protocol.html">HDF5Archiver</A> — Protocol for creating HDF5 instances of the Archiver</DT><DT><AHREF="swarm.defobj.hdf5compoundtype.protocol.html">HDF5CompoundType</A> — HDF5 composite type interface</DT><DT><AHREF="swarm.defobj.lisparchiver.protocol.html">LispArchiver</A> — Protocol for creating Lisp instances of the Archiver</DT><DT><AHREF="swarm.defobj.returnable.protocol.html">RETURNABLE</A> — Declare that a defined type may be created as a side-effect</DT><DT><AHREF="swarm.defobj.serialization.protocol.html">Serialization</A> — Object serialization protocol.</DT><DT><AHREF="swarm.defobj.setinitialvalue.protocol.html">SetInitialValue</A> — Create using initial value from an existing object.</DT><DT><AHREF="swarm.defobj.symbol.protocol.html">Symbol</A> — Object defined as a distinct global id constant.</DT><DT><AHREF="swarm.defobj.warning.protocol.html">Warning</A> — A condition of possible concern to a program developer.</DT><DT><AHREF="swarm.defobj.zone.protocol.html">Zone</A> — Modular unit of storage allocation.</DT><DT><AHREF="swarm.defobj.generic.module.html">General</A> — Standard objects for GNU Objective C extensions</DT></DL></DIV></DIV><DIVCLASS="TITLEPAGE"><DIVCLASS="ABSTRACT"><P><B>Documentation and Implementation Status</B></P><P>The current interfaces defined in defobj are expected to remainstable, with the exception of those relating to package structure andcustom-generated classes. Those facilities are in process of beingtotally replaced, and will not be documented further until thatreplacement is complete. Details of support for defining a customizedtype will also be provided later.</P><P>All the interfaces defined in the header file are currentlyimplemented, except for the various types of zones that would hold allallocated storage in a collection of local pages, and that wouldprovide automatic reclaim of unused storage. The current zoneimplementation supports all defined allocation messages, and alsomaintains the population of the zone that consists of all objectscreated directly within it.</P><P>The Usage Guide section is only a start, but it does includesubsections that discuss the style of Objective C programming adoptedfor use throughout Swarm. There is a full set of Interface Referencesections, though some details remain to be filled in.Throughout the documentation, a parenthesized comment that starts with(.. indicates an editorial comment on the current status ofimplementation or documentation.</P></DIV><AHREF="swarm.defobj.generic.revhistory.html">Revision History (defobj)</A></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="x1840.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.defobj.archiver.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Beta to 1.0.0</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book930.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Archiver</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -