Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Analyze the objects in the memory on a graph" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2019-08-02 00:08:17 -0800 (Fri, 02 Aug 2019) $" revision: "$Revision: 103380 $" class interface MA_OBJECT_GRAPH_MEDIATOR create make_with_drawable (a_drawable: EV_FRAME; a_main_window: like main_window) -- Create function. require a_drawable_not_void: a_drawable /= Void a_drawable_not_destroyed: not a_drawable.is_destroyed a_drawable_not_full: a_drawable.extendible feature -- Access generating_type: TYPE [detachable MA_OBJECT_GRAPH_MEDIATOR] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: MA_OBJECT_GRAPH_MEDIATOR): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: MA_OBJECT_GRAPH_MEDIATOR): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: MA_OBJECT_GRAPH_MEDIATOR): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) feature -- Duplication copy (other: MA_OBJECT_GRAPH_MEDIATOR) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: MA_OBJECT_GRAPH_MEDIATOR) -- Effect equivalent to that of: -- copy (other . deep_twin) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: MA_OBJECT_GRAPH_MEDIATOR -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: MA_OBJECT_GRAPH_MEDIATOR) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: MA_OBJECT_GRAPH_MEDIATOR -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: MA_OBJECT_GRAPH_MEDIATOR -- New object equal to Current -- twin calls copy; to change copying/twinning semantics, redefine copy. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable MA_OBJECT_GRAPH_MEDIATOR -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.default for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class feature -- Colors Decreased_color: EV_COLOR -- Color used when obejct count decreased. -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY green_color_set: Result /= Void Increased_color: EV_COLOR -- Color used when object count increased. -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY red_color_set: Result /= Void feature -- Command add_link (n1, n2: EG_LINKABLE) -- Add a link to graph connecting n1 with n2. require n1_not_void: n1 /= Void n2_not_void: n2 /= Void add_node (ax, ay: INTEGER_32; a_object: ANY) -- Add a new node to graph position it at (ax, ay) in world. require a_object_not_void: a_object /= Void ax_not_large_or_small: ax >= 0 and ax <= 2000 ay_not_large_or_small: ay >= 0 and ay <= 2000 add_node_random_pos (a_object: ANY) -- Add a node into the graph at a random position require a_object_not_void: a_object /= Void add_nodes_refer_to (a_object: ANY) -- Add the a_object node and all the nodes refers to it. require a_object_not_void: a_object /= Void arrange_in_grid -- Arrange nodes in a circle. clear_graph -- Clear graph. find_draw_node_by_object (a_object: ANY): detachable EG_NODE -- Find in objects_already_draw return a EG_NODE which corresponding to object. require a_object_not_void: a_object /= Void ensure result_not_void: Result /= Void object_already_draw (a_object: ANY): BOOLEAN -- if a_object already have a represent figure drawed ? require a_object_not_void: a_object /= Void on_select_node (a_x: INTEGER_32; a_y: INTEGER_32; a_button: INTEGER_32; a_x_tilt: REAL_64; a_y_tilt: REAL_64; a_pressure: REAL_64; a_screen_x: INTEGER_32; a_screen_y: INTEGER_32) -- Set the reference lines red, others black. feature -- Cursors Accept_node: EV_POINTER_STYLE -- Icon used when picking -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY accept_node_not_void: Result /= Void Accept_node_class: EV_POINTER_STYLE -- Icon used when picking -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY accept_node_class: Result /= Void Deny_node: EV_POINTER_STYLE -- Icon used when picking -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY deny_node_not_void: Result /= Void Deny_node_class: EV_POINTER_STYLE -- Icon used when picking -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY deny_node_class: Result /= Void feature -- Implementation for agents drop_a_object (a_object: ANY) -- When user pick a object from the object_grid (in main_book's 2nd tab). require a_object_not_void: a_object /= Void find_object_by_instance_name (a_object_name: READABLE_STRING_32) -- Find all the objects which name (the field name) is a_object_name then put then all on the graph. find_object_by_type_name (a_type_name: READABLE_STRING_32) -- Find all the objects in the system which type is "a_type_name". find_refers -- Find the refers to current slected node and draw the nodes which refer to it. zoom_changed (a_value: INTEGER_32) -- Change the graph size base on the zoom value. require a_value_not_zeor: a_value /= 0 feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Singletons filter: MA_FILTER_SINGLETON -- FILTER_SINGLETON instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY filter_not_void: Result /= Void filter_window: MA_FILTER_WINDOW -- FILTER_WINDOW instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY filter_window_not_void: Result /= Void Grid_util: MA_GRID_UTIL_SINGLETON -- GRID_UTIL_SINGLETON instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY grid_util_not_void: Result /= Void Icons: MA_ICONS_SINGLETON -- ICONS_SINGLETON instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY icons_not_void: Result /= Void Internal: INTERNAL -- INTERNAL instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY internal_made: Internal /= Void Memory: MEMORY -- MEMORY singleton -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY memory_not_void: Result /= Void Object_finder: MA_OBJECT_FINDER_SINGLETON -- OBJECT_FINDER_SINGLETON instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY object_finder_not_void: Result /= Void System_util: MA_SYSTEM_UTIL_SINGLETON -- SYSTEM_UTIL_SINGLETON instance -- (from MA_SINGLETON_FACTORY) ensure -- from MA_SINGLETON_FACTORY system_util_not_void: Result /= Void invariant objects_already_draw_not_void: objects_already_draw /= Void object_drawing_not_void: object_drawing /= Void graph_not_void: graph /= Void world_not_void: world /= Void model_cell_not_void: model_cell /= Void links_should_orignal_color_not_void: links_should_orignal_color /= Void nodes_visited_not_void: nodes_visited /= Void grid_layout_not_void: grid_layout /= Void objects_already_draw_has_no_void_item: True -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2019, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class MA_OBJECT_GRAPH_MEDIATOR
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org