indexing
description: "Abstraction for objects that have geometric position."
status: "See notice at end of class"
keywords: "position, width, height"
date: "$Date$"
revision: "$Revision$"
deferred class interface
EV_POSITIONED
feature
data: ANY
EV_ANY
feature
height: INTEGER
minimum_height
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.height
minimum_height: INTEGER
height
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.minimum_height
positive_or_zero: Result >= 0
minimum_width: INTEGER
width
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.minimum_width
positive_or_zero: Result >= 0
width: INTEGER
minimum_width
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.width
x_position: INTEGER
x_position
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.x_position
y_position: INTEGER
y_position
require
not_destroyed: not is_destroyed
ensure
bridge_ok: Result = implementation.y_position
feature
set_data (some_data: like data)
some_datadata
EV_ANY
require EV_ANY
not_destroyed: not is_destroyed
ensure EV_ANY
data_assigned: data = some_data
feature
copy (other: like Current)
other
EV_ANY
require ANY
other_not_void: other /= void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
feature
destroy
Current
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
feature
is_destroyed: BOOLEAN
Current
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
width_not_negative: is_usable implies width >= 0
height_not_negative: is_usable implies height >= 0
minimum_width_not_negative: is_usable implies minimum_width >= 0
minimum_height_not_negative: is_usable implies minimum_height >= 0
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
EV_ANY
is_initialized: is_initialized
is_coupled: implementation /= void and then implementation.interface = Current
default_create_called: default_create_called
end -- EV_POSITIONED