| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.Thing
edu.isi.stella.Context
public abstract class Context
| Field Summary | |
|---|---|
 Cons | 
allSuperContexts
 | 
 Module | 
baseModule
 | 
 List | 
childContexts
 | 
 int | 
contextNumber
 | 
| Fields inherited from class edu.isi.stella.Thing | 
|---|
dynamicSlots, surrogateValueInverse | 
| Constructor Summary | |
|---|---|
Context()
 | 
|
| Method Summary | |
|---|---|
static Stella_Object | 
accessContextSlotValue(Context self,
                       Symbol slotname,
                       Stella_Object value,
                       boolean setvalueP)
 | 
static AllPurposeIterator | 
allSubcontexts(Context context,
               Keyword traversal)
Return an iterator that generates all subcontexts of 'self' (not including 'self') in the order specified by 'traversal' (one of :preorder, :inorder, :postorder or :topdown).  | 
 Context | 
changeContext()
Change the current context to be the context 'context'.  | 
static Context | 
changeContextSlowly(Context self)
 | 
static Context | 
changeCurrentContext(Context context)
 | 
static void | 
clearContext(Context self)
Destroy all objects belonging to 'self' or any of its subcontexts.  | 
static void | 
clearOneContext(Context self)
 | 
 java.lang.String | 
contextName()
 | 
static World | 
createWorld(Context parentcontext,
            java.lang.String name)
Create a new world below the world or module 'parentContext'.  | 
 boolean | 
deletedP()
Default deletedP method which always returns FALSE. | 
 void | 
destroyContext()
Make the translator happy.  | 
static boolean | 
discardedContextP(Context context)
 | 
static void | 
helpClearContext(Context self)
 | 
 void | 
helpPrintOutline(OutputStream stream,
                 int currentDepth,
                 int depth,
                 boolean namedP)
Helper method for printOutline | 
 Module | 
homeModule()
Return the home module of self. | 
 void | 
inheritSupercontexts()
 | 
 boolean | 
multipleParentsP()
 | 
 Iterator | 
parentContexts()
 | 
static void | 
printContext(Context self,
             java.io.PrintStream stream)
 | 
static void | 
printContextTree(Context root)
 | 
 void | 
printObject(java.io.PrintStream stream)
 | 
static boolean | 
subcontextP(Context subcontext,
            Context supercontext)
 | 
 void | 
uninheritSupercontexts()
 | 
static boolean | 
visibleFromP(Context viewedcontext,
             Context fromcontext)
 | 
| Methods inherited from class edu.isi.stella.Thing | 
|---|
accessThingSlotValue, badP, deletedPSetter | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public List childContexts
public Module baseModule
public Cons allSuperContexts
public int contextNumber
| Constructor Detail | 
|---|
public Context()
| Method Detail | 
|---|
public void helpPrintOutline(OutputStream stream,
                             int currentDepth,
                             int depth,
                             boolean namedP)
printOutline
helpPrintOutline in class Stella_Objectstream - currentDepth - depth - namedP - public static void printContextTree(Context root)
public static void printContext(Context self,
                                java.io.PrintStream stream)
public static Context changeContextSlowly(Context self)
public boolean deletedP()
Stella_ObjectdeletedP method which always returns FALSE.  Objects
 that inherit DYNAMIC-SLOTS-MIXIN also inherit the dynamically-allocated slot
 deletedObjectP which is read/writable with specializations of this method.
deletedP in class Thingpublic static boolean discardedContextP(Context context)
public static boolean subcontextP(Context subcontext,
                                  Context supercontext)
public static void clearContext(Context self)
self - public static void helpClearContext(Context self)
public static void clearOneContext(Context self)
public static boolean visibleFromP(Context viewedcontext,
                                   Context fromcontext)
public static AllPurposeIterator allSubcontexts(Context context,
                                                Keyword traversal)
context - traversal - 
public static World createWorld(Context parentcontext,
                                java.lang.String name)
parentcontext - name - 
public void destroyContext()
public void uninheritSupercontexts()
public void inheritSupercontexts()
public boolean multipleParentsP()
public Context changeContext()
public static Context changeCurrentContext(Context context)
public Iterator parentContexts()
public void printObject(java.io.PrintStream stream)
printObject in class Thing
public static Stella_Object accessContextSlotValue(Context self,
                                                   Symbol slotname,
                                                   Stella_Object value,
                                                   boolean setvalueP)
public Module homeModule()
Stella_Objectself.
homeModule in class Stella_Objectpublic java.lang.String contextName()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||