GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
smarteiffel
>
EIFFELTEST_CLIENT_SOCKET
+
Point of view
LOOP_ITEM
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
JOB
LOOP_ITEM
All features
class EIFFELTEST_CLIENT_SOCKET
Summary
top
Sends commands to an eiffeltest server (client-side server facade)
Direct parents
Inherit list:
JOB
Insert list:
EIFFELTEST_NETWORK
,
HASHABLE
,
LOGGING
Class invariant
top
port > 0
Overview
top
Creation features
make
(a_port:
INTEGER_32
, a_commands:
EIFFELTEST_COMMAND_PROVIDER
, a_on_reply:
PROCEDURE
[
TUPLE 3
[
INTEGER_32
,
FIXED_STRING
,
STRING
]], a_on_done:
PROCEDURE
[
TUPLE 2
[
INTEGER_32
,
INTEGER_32
]])
Exported features
hash_code
:
INTEGER_32
The hash-code value of
Current
.
pid
:
INTEGER_32
prepare
(events:
EVENTS_SET
)
Use
events
to describe condition that make this job ready to
continue
.
is_ready
(events:
EVENTS_SET
):
BOOLEAN
Check if this job is ready to continue his work.
continue
Continue to do the job.
done
:
BOOLEAN
done
returns
True
when the job is finished.
restart
Configure the job like the initial state.
server_running
:
BOOLEAN
priority
:
INTEGER_32
Never change priority after job inserted in loop_item.
infix "<"
(other:
JOB
):
BOOLEAN
port
:
INTEGER_32
is_equal
(other: EIFFELTEST_CLIENT_SOCKET):
BOOLEAN
Is
other
attached to an object considered equal to current object?
hash_code
:
INTEGER_32
effective function
top
The hash-code value of
Current
.
ensure
good_hash_value:
Result >= 0
pid
:
INTEGER_32
effective function
top
prepare
(events:
EVENTS_SET
)
effective procedure
top
Use
events
to describe condition that make this job ready to
continue
.
events
describe the conditions to be satisfied before running this job for one more step.
require
events /= Void
not events.queryable
not done
is_ready
(events:
EVENTS_SET
):
BOOLEAN
effective function
top
Check if this job is ready to continue his work.
events
describe the events which occurred.
require
events /= Void
events.queryable
not done
continue
effective procedure
top
Continue to do the job.
The work to do has to be small work and non blocking, it will continue on next call.
require
not done
done
:
BOOLEAN
writable attribute
top
done
returns
True
when the job is finished.
Then the job may be
restart
(ed) if it need to run again.
restart
effective procedure
top
Configure the job like the initial state.
Example: when some window dialog appears second time, all jobs from this window are restarted.
require
done
ensure
not done
server_running
:
BOOLEAN
effective function
top
priority
:
INTEGER_32
writable attribute
top
Never change priority after job inserted in loop_item.
Priority should only be set at creation time.
infix "<"
(other:
JOB
):
BOOLEAN
effective function
top
port
:
INTEGER_32
writable attribute
top
is_equal
(other: EIFFELTEST_CLIENT_SOCKET):
BOOLEAN
deferred function
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
ensure
Result implies
hash_code
= other.
hash_code
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)