com.vm.mind
Class MIThing

java.lang.Object
  |
  +--com.vm.mind.MIAnything
        |
        +--com.vm.mind.MIThing
All Implemented Interfaces:
ORObject
Direct Known Subclasses:
VMView

public class MIThing
extends MIAnything

Thing = Class = Object


Field Summary
 MIIdea m_idea
           
 MIList m_is
           
 MIList m_things
           
 java.lang.String m_url
           
 
Fields inherited from class com.vm.mind.MIAnything
IS_ERROR, IS_LINK, IS_LIST, IS_SHARED, IS_SYSTEM, IS_VALUE, m_valid
 
Constructor Summary
MIThing(MIWorld a_world, MIThing a_is)
           
MIThing(MIWorld i_world, MIThing i_is, MIIdea i_idea, int i_type)
          Constructs Thing within given world, basic (superclass) Thing, Idea (standing for given Thing) and type bitmask (IS_...)
 
Method Summary
 boolean delThing(java.lang.String i_name, MIThing i_thing)
          Should override this method defined at ORObject (not done yet). Sets Thing property to null (invalid) value or removes it from List property in case if property is List of Things.
 int getCount()
          Returns number of properties of given Anything/Thing
 boolean getDomains(MIList io_list)
           
 MIList getList(java.lang.String i_name)
          Returns list presentating property by name if property is list of Things
 java.lang.String getName()
          Returns name of given Thing (if thing assumes name presense)
 java.lang.String getName(int i_number)
          Returns name of property by given number (0<=number
 MIProperty getProperty(java.lang.String i_name)
          ???
 java.lang.String getQuery()
          Returns ORL query to be used in order to access given Thing
 java.lang.String getString(java.lang.String i_name)
          Returns string presentation of property by name if property is not Thing or list
 int getType(java.lang.String i_name)
          Returns bitmask of property type.
 boolean is(MIThing i_thing)
          Makes given Thing to become subclass (instance) of another Thing
 boolean is(java.lang.String i_name)
           
 void message(java.lang.String m)
          Sends notification message in any way ad format dependent on actual Anything
 boolean setString(java.lang.String i_name, java.lang.String i_string)
          Assigns string value to property by name if property is not Thing or list
 boolean setThing(java.lang.String i_name, MIThing i_thing)
          Assigns Thing value to property by name if property Thing or list.
 boolean valid()
           
 
Methods inherited from class com.vm.mind.MIAnything
dump, fullDump, getKey, getThing, getType, load, SetString, SetThing, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_is

public MIList m_is

m_things

public MIList m_things

m_idea

public MIIdea m_idea

m_url

public java.lang.String m_url
Constructor Detail

MIThing

public MIThing(MIWorld a_world,
               MIThing a_is)

MIThing

public MIThing(MIWorld i_world,
               MIThing i_is,
               MIIdea i_idea,
               int i_type)
Constructs Thing within given world, basic (superclass) Thing, Idea (standing for given Thing) and type bitmask (IS_...)
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
See Also:
Anything

getCount

public int getCount()
Description copied from interface: ORObject
Returns number of properties of given Anything/Thing
Overrides:
getCount in class MIAnything
See Also:
Anything

getQuery

public java.lang.String getQuery()
Description copied from interface: ORObject
Returns ORL query to be used in order to access given Thing
Overrides:
getQuery in class MIAnything
See Also:
Anything

getName

public java.lang.String getName()
Description copied from interface: ORObject
Returns name of given Thing (if thing assumes name presense)
Overrides:
getName in class MIAnything
See Also:
Anything

getName

public java.lang.String getName(int i_number)
Description copied from interface: ORObject
Returns name of property by given number (0<=number
Overrides:
getName in class MIAnything
See Also:
Anything

getDomains

public boolean getDomains(MIList io_list)

getType

public int getType(java.lang.String i_name)
Description copied from interface: ORObject
Returns bitmask of property type. Possible values are IS_VALUE, IS_LINK, IS_LINK|IS_LIST
Overrides:
getType in class MIAnything
See Also:
Anything

is

public boolean is(java.lang.String i_name)
Overrides:
is in class MIAnything
Returns:
true if given Thing is kind of Thing assotiated with given name, false otherwise
See Also:
Anything

getString

public java.lang.String getString(java.lang.String i_name)
Description copied from interface: ORObject
Returns string presentation of property by name if property is not Thing or list
Overrides:
getString in class MIAnything
See Also:
Anything

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
See Also:
Anything

getProperty

public MIProperty getProperty(java.lang.String i_name)
???

setString

public boolean setString(java.lang.String i_name,
                         java.lang.String i_string)
Description copied from interface: ORObject
Assigns string value to property by name if property is not Thing or list
Overrides:
setString in class MIAnything
See Also:
Anything

setThing

public boolean setThing(java.lang.String i_name,
                        MIThing i_thing)
Description copied from interface: ORObject
Assigns Thing value to property by name if property Thing or list. In case of list, it adds input Thing to list of Things.
Overrides:
setThing in class MIAnything
See Also:
Anything

delThing

public boolean delThing(java.lang.String i_name,
                        MIThing i_thing)
Description copied from class: MIAnything
Should override this method defined at ORObject (not done yet).

Sets Thing property to null (invalid) value or removes it from List property in case if property is List of Things.

Overrides:
delThing in class MIAnything
See Also:
Anything

valid

public boolean valid()
Overrides:
valid in class MIAnything
See Also:
Anything

is

public boolean is(MIThing i_thing)
Makes given Thing to become subclass (instance) of another Thing
Returns:
true if success
See Also:
Anything