com.vm.mind
Class MIWorld

java.lang.Object
  |
  +--com.vm.mind.MIAnything
        |
        +--com.vm.mind.MIWorld
All Implemented Interfaces:
ORObject

public class MIWorld
extends MIAnything


Field Summary
 java.lang.String m_accesstype
           
 java.util.Hashtable m_changes
           
 MIList m_ideas
           
 java.lang.String m_name
           
 VMSpace m_space
           
 MIList m_viewpoints
           
 
Fields inherited from class com.vm.mind.MIAnything
IS_ERROR, IS_LINK, IS_LIST, IS_SHARED, IS_SYSTEM, IS_VALUE, m_valid
 
Constructor Summary
MIWorld(VMSpace i_space)
           
 
Method Summary
 void externalizeChanges()
          Prepares list of changes to be exported 1.
 void externalizeChanges(MIAnything a)
           
 void externalizeViewChanges(VMView v)
           
protected  void finalize()
           
 void getAllThings(MIThing a_thing, java.util.Vector a_list)
           
 MIList getList(java.lang.String i_name)
          Returns list presentating property by name if property is list of Things
 boolean merge(MIWorld a_world)
           
 void message(java.lang.String m)
          Sends notification message in any way ad format dependent on actual Anything
 MIAnything newThing(java.lang.String i_keyword, java.lang.String i_name)
          newInstance
 void notify(MIAnything a)
          Lists a in the list of changes to be distributed acrosss the places
 void notify(VMView a_view, VMNode a_node)
          lists a_node in the list of changes to be distributed acrosss the places
 boolean receive(java.lang.String i_string)
           
 boolean save(MIStream st)
           
 void save(MIStream st, MIThing i_thing, int i_type, boolean filter_changes)
           
 boolean saveChanges(MIStream st)
           
 MIThing thing(java.lang.String i_name)
           
 
Methods inherited from class com.vm.mind.MIAnything
delThing, dump, fullDump, getCount, getKey, getName, getName, getQuery, getString, getThing, getType, getType, is, load, setString, SetString, setThing, SetThing, toString, valid
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_name

public java.lang.String m_name

m_accesstype

public java.lang.String m_accesstype

m_viewpoints

public MIList m_viewpoints

m_space

public VMSpace m_space

m_ideas

public MIList m_ideas

m_changes

public java.util.Hashtable m_changes
Constructor Detail

MIWorld

public MIWorld(VMSpace i_space)
Method Detail

message

public void message(java.lang.String m)
Description copied from class: MIAnything
Sends notification message in any way ad format dependent on actual Anything
Overrides:
message in class MIAnything

thing

public MIThing thing(java.lang.String i_name)

newThing

public MIAnything newThing(java.lang.String i_keyword,
                           java.lang.String i_name)
newInstance

getList

public MIList getList(java.lang.String i_name)
Description copied from interface: ORObject
Returns list presentating property by name if property is list of Things
Overrides:
getList in class MIAnything
Following copied from class: com.vm.mind.MIAnything
See Also:
ORObject

receive

public boolean receive(java.lang.String i_string)

save

public void save(MIStream st,
                 MIThing i_thing,
                 int i_type,
                 boolean filter_changes)
          throws java.io.IOException

save

public boolean save(MIStream st)

getAllThings

public void getAllThings(MIThing a_thing,
                         java.util.Vector a_list)

merge

public boolean merge(MIWorld a_world)

notify

public void notify(MIAnything a)
Lists a in the list of changes to be distributed acrosss the places

Since:
20010129

notify

public void notify(VMView a_view,
                   VMNode a_node)
lists a_node in the list of changes to be distributed acrosss the places
Since:
20010129

externalizeChanges

public void externalizeChanges()
Prepares list of changes to be exported

1. Recursively travels in all directions from Thing until all linked Things will not be listed in the cache

3. Scan all Nodes in the View against Nodes in the cache so that all Nodes referring to Things already listed in the cache via other Nodes will be listed in the cache as well. 2. Save World filetering it so that only Things referenced in the cache will be stored 4. Save View filetering it so that only Nodes referenced in the cache will be stored m_changes(View,Hashtable) m_changes()

Since:
20010129

externalizeChanges

public void externalizeChanges(MIAnything a)

externalizeViewChanges

public void externalizeViewChanges(VMView v)

saveChanges

public boolean saveChanges(MIStream st)

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object