indexing
description: "Implementation of transfer manager builder"
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-06-13 10:37:36 -0700 (Tue, 13 Jun 2006) $"
revision: "$Revision: 59704 $"
class interface
TRANSFER_MANAGER_BUILDER_IMPL
create
make
feature
generating_type: STRING_8
ANY
generator: STRING_8
ANY
manager: TRANSFER_MANAGER
require
built: manager_built
transaction (n: INTEGER_32): TRANSACTION
`n'
require
not_empty: not is_empty
index_in_range: 1 <= n and n <= count
ensure
result_exists: Result /= Void
feature
count: INTEGER_32
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
error: BOOLEAN
error_reason: STRING_8
require
error_occurred: error
ensure
non_empty_string: Result /= Void and then not Result.is_empty
host_ok (h: STRING_8): BOOLEAN
`h'
HOST_VALIDITY_CHECKER
is_address_correct (addr: STRING_8; mode: INTEGER_32): BOOLEAN
`addr'`mode'
`mode'ReadableWritable
require
non_empty_address: addr /= Void and then not addr.is_empty
mode_valid: is_mode_valid (mode)
is_empty: BOOLEAN
is_mode_valid (mode: INTEGER_32): BOOLEAN
`mode'
last_added_source_correct: BOOLEAN
last_added_target_correct: BOOLEAN
manager_built: BOOLEAN
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
transfer_finished: BOOLEAN
transfer_succeeded: BOOLEAN
feature
reset_proxies
ensure
no_source_proxy_set: source_proxy = Void
no_target_proxy_set: target_proxy = Void
reset_source_proxy
ensure
no_source_proxy_set: source_proxy = Void
reset_target_proxy
ensure
no_target_proxy_set: target_proxy = Void
set_proxies (host: STRING_8; port: INTEGER_32)
`host'
`port'
require
host_not_empty: host /= Void and then not host.is_empty
port_non_negative: port >= 0
ensure
source_proxy_exists: source_proxy /= Void
host_set: source_proxy.host = host
port_set: source_proxy.port = port
proxies_equal: source_proxy = target_proxy
set_source_proxy (host: STRING_8; port: INTEGER_32)
`host'`port'
require
host_not_empty: host /= Void and then not host.is_empty
port_non_negative: port >= 0
ensure
source_proxy_exists: source_proxy /= Void
host_set: source_proxy.host = host
port_set: source_proxy.port = port
set_target_proxy (host: STRING_8; port: INTEGER_32)
`host'`port'
require
host_not_empty: host /= Void and then not host.is_empty
port_non_negative: port >= 0
ensure
target_proxy_exists: target_proxy /= Void
host_set: target_proxy.host = host
port_set: target_proxy.port = port
set_timeout (s: INTEGER_32)
`s'
require
non_negative: s >= 0
ensure
timeout_set: timeout.item = s
feature
add_transaction (s, t: STRING_8)
`s'`t'
require
source_exists: s /= Void
target_exists: t /= Void
ensure
one_more_transaction_if_correct: (last_added_source_correct and last_added_target_correct) implies count = old count + 1
feature
remove_transaction (n: INTEGER_32)
`n'
require
not_empty: not is_empty
index_in_range: 1 <= n and n <= count
ensure
one_less_item: count = count - 1
index_unchanged: (old transactions.index < old count) implies (transactions.index = old transactions.index)
index_adapted: (old transactions.index = old count) implies (transactions.index = old transactions.index - 1)
wipe_out
ensure
empty: is_empty
no_optimized_transactions: optimized_transactions = Void
no_manager: not manager_built
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
build_manager
require
not_empty: not is_empty
ensure
manager_ready: manager_built
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
transfer
require
manager_built: manager_built
ensure
transfer_finished: transfer_finished
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
readable_set_exists: readable_set /= Void
writable_set_exists: writable_set /= Void
resource_hash: resource_hash /= Void
success_constraint: transfer_succeeded implies transfer_finished
count_equality: (optimized_count > 0) implies (count = optimized_count)
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end TRANSFER_MANAGER_BUILDER_IMPL