GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
smarteiffel
>
SEDB_PROCESS
+
Point of view
TYPED_INTERNALS
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
JOB
LOOP_ITEM
SEDB_RUNNER
All features
class SEDB_PROCESS
Summary
top
Direct parents
Inherit list:
JOB
Class invariant
top
priority /= Minimum_integer
Overview
top
Creation features
make
(a_path:
STRING
, a_pid:
INTEGER_32
)
Exported features
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.
restart
Configure the job like the initial state.
done
:
BOOLEAN
done
returns
True
when the job is finished.
pid
:
INTEGER_32
set_command
(a_command:
STRING
)
tail
:
STRING
clear_tail
set_current
(enable:
BOOLEAN
)
list
killed
make
(a_path:
STRING
, a_pid:
INTEGER_32
)
path_for
(pipe:
STRING
):
STRING
status
:
INTEGER_32
status_unknown
:
INTEGER_32
status_still_running
:
INTEGER_32
status_not_running
:
INTEGER_32
path
:
STRING
command
:
STRING
command_write
:
INTEGER_32
command_write_failed
:
BOOLEAN
dir
:
BASIC_DIRECTORY
pipe_in
:
PIPE_INPUT
pipe_out
:
PIPE_OUTPUT
ready_read
:
BOOLEAN
ready_write
:
BOOLEAN
pipe_tail
:
STRING
buffered
:
BOOLEAN
write_failure
(again:
BOOLEAN
):
BOOLEAN
read_failure
(again:
BOOLEAN
):
BOOLEAN
priority
:
INTEGER_32
Never change priority after job inserted in loop_item.
infix "<"
(other:
JOB
):
BOOLEAN
Maximum:
Maximum_character_code
:
INTEGER_16
Largest supported code for
CHARACTER
values.
Maximum_integer_8
:
INTEGER_8
Largest supported value of type
INTEGER_8
.
Maximum_integer_16
:
INTEGER_16
Largest supported value of type
INTEGER_16
.
Maximum_integer
:
INTEGER_32
Largest supported value of type INTEGER/
INTEGER_32
.
Maximum_integer_32
:
INTEGER_32
Largest supported value of type INTEGER/
INTEGER_32
.
Maximum_integer_64
:
INTEGER_64
Largest supported value of type
INTEGER_64
.
Maximum_real_32
:
REAL_32
Largest non-special (no NaNs nor infinity) supported value of type
REAL_32
.
Maximum_real
:
REAL_64
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Maximum_real_64
:
REAL_64
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Maximum_real_80
:
REAL_EXTENDED
Largest supported value of type
REAL_80
.
Minimum:
Minimum_character_code
:
INTEGER_16
Smallest supported code for
CHARACTER
values.
Minimum_integer_8
:
INTEGER_8
Smallest supported value of type
INTEGER_8
.
Minimum_integer_16
:
INTEGER_16
Smallest supported value of type
INTEGER_16
.
Minimum_integer
:
INTEGER_32
Smallest supported value of type INTEGER/
INTEGER_32
.
Minimum_integer_32
:
INTEGER_32
Smallest supported value of type INTEGER/
INTEGER_32
.
Minimum_integer_64
:
INTEGER_64
Smallest supported value of type
INTEGER_64
.
Minimum_real_32
:
REAL_32
Smallest non-special (no NaNs nor infinity) supported value of type
REAL_32
.
Minimum_real
:
REAL_64
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Minimum_real_64
:
REAL_64
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Minimum_real_80
:
REAL_64
Smallest supported value of type
REAL_80
.
Bits:
Boolean_bits
:
INTEGER_32
Number of bits in a value of type
BOOLEAN
.
Character_bits
:
INTEGER_32
Number of bits in a value of type
CHARACTER
.
Integer_bits
:
INTEGER_32
Number of bits in a value of type INTEGER.
Real_bits
:
INTEGER_32
Number of bits in a value of type REAL.
Pointer_bits
:
INTEGER_32
Number of bits in a value of type
POINTER
.
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
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
done
:
BOOLEAN
effective function
top
done
returns
True
when the job is finished.
Then the job may be
restart
(ed) if it need to run again.
pid
:
INTEGER_32
writable attribute
top
set_command
(a_command:
STRING
)
effective procedure
top
require
a_command /= Void
ensure
command
.is_equal(a_command)
tail
:
STRING
effective function
top
clear_tail
effective procedure
top
ensure
tail
.is_empty
set_current
(enable:
BOOLEAN
)
effective procedure
top
ensure
buffered
= not enable
list
effective procedure
top
killed
effective procedure
top
make
(a_path:
STRING
, a_pid:
INTEGER_32
)
effective procedure
top
require
not a_path.is_empty
ensure
path
.is_equal(a_path)
pid
= a_pid
status
=
status_unknown
path_for
(pipe:
STRING
):
STRING
effective function
top
status
:
INTEGER_32
writable attribute
top
status_unknown
:
INTEGER_32
is 0
constant attribute
top
status_still_running
:
INTEGER_32
is 1
constant attribute
top
status_not_running
:
INTEGER_32
is 2
constant attribute
top
path
:
STRING
writable attribute
top
command
:
STRING
writable attribute
top
command_write
:
INTEGER_32
writable attribute
top
command_write_failed
:
BOOLEAN
writable attribute
top
dir
:
BASIC_DIRECTORY
writable attribute
top
pipe_in
:
PIPE_INPUT
writable attribute
top
pipe_out
:
PIPE_OUTPUT
writable attribute
top
ready_read
:
BOOLEAN
writable attribute
top
ready_write
:
BOOLEAN
writable attribute
top
pipe_tail
:
STRING
writable attribute
top
buffered
:
BOOLEAN
writable attribute
top
write_failure
(again:
BOOLEAN
):
BOOLEAN
effective function
top
read_failure
(again:
BOOLEAN
):
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
Maximum_character_code
:
INTEGER_16
top
Largest supported code for
CHARACTER
values.
ensure
meaningful:
Result >= 127
Maximum_integer_8
:
INTEGER_8
is 127
constant attribute
top
Largest supported value of type
INTEGER_8
.
Maximum_integer_16
:
INTEGER_16
is 32767
constant attribute
top
Largest supported value of type
INTEGER_16
.
Maximum_integer
:
INTEGER_32
is 2147483647
constant attribute
top
Largest supported value of type INTEGER/
INTEGER_32
.
Maximum_integer_32
:
INTEGER_32
is 2147483647
constant attribute
top
Largest supported value of type INTEGER/
INTEGER_32
.
Maximum_integer_64
:
INTEGER_64
is 9223372036854775807
constant attribute
top
Largest supported value of type
INTEGER_64
.
Maximum_real_32
:
REAL_32
is {REAL_32 3.4028234663852885981170418348451692544e+38}
constant attribute
top
Largest non-special (no NaNs nor infinity) supported value of type
REAL_32
.
Maximum_real
:
REAL_64
top
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Just to give an idea of this value: 1.79769313486231570....e+308
Maximum_real_64
:
REAL_64
top
Largest non-special (no NaNs nor infinity) supported value of type REAL.
Just to give an idea of this value: 1.79769313486231570....e+308
Maximum_real_80
:
REAL_EXTENDED
top
Largest supported value of type
REAL_80
.
ensure
meaningful:
Result >=
Maximum_real
Minimum_character_code
:
INTEGER_16
top
Smallest supported code for
CHARACTER
values.
ensure
meaningful:
Result <= 0
Minimum_integer_8
:
INTEGER_8
is -128
constant attribute
top
Smallest supported value of type
INTEGER_8
.
Minimum_integer_16
:
INTEGER_16
is -32768
constant attribute
top
Smallest supported value of type
INTEGER_16
.
Minimum_integer
:
INTEGER_32
is -2147483648
constant attribute
top
Smallest supported value of type INTEGER/
INTEGER_32
.
Minimum_integer_32
:
INTEGER_32
is -2147483648
constant attribute
top
Smallest supported value of type INTEGER/
INTEGER_32
.
Minimum_integer_64
:
INTEGER_64
is -9223372036854775808
constant attribute
top
Smallest supported value of type
INTEGER_64
.
Minimum_real_32
:
REAL_32
is {REAL_32 -3.40282346638528859811704183484516925440e+38}
constant attribute
top
Smallest non-special (no NaNs nor infinity) supported value of type
REAL_32
.
Minimum_real
:
REAL_64
top
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Just to give an idea of this value: -1.79769313486231570....e+308
Minimum_real_64
:
REAL_64
top
Smallest non-special (no NaNs nor infinity) supported value of type REAL.
Just to give an idea of this value: -1.79769313486231570....e+308
Minimum_real_80
:
REAL_64
top
Smallest supported value of type
REAL_80
.
ensure
meaningful:
Result <= 0.0
Boolean_bits
:
INTEGER_32
top
Number of bits in a value of type
BOOLEAN
.
ensure
meaningful:
Result >= 1
Character_bits
:
INTEGER_32
top
Number of bits in a value of type
CHARACTER
.
ensure
meaningful:
Result >= 1
large_enough:
{INTEGER_32 2} ^ Result >=
Maximum_character_code
Integer_bits
:
INTEGER_32
top
Number of bits in a value of type INTEGER.
ensure
integer_definition:
Result = 32
Real_bits
:
INTEGER_32
is 64
constant attribute
top
Number of bits in a value of type REAL.
Pointer_bits
:
INTEGER_32
top
Number of bits in a value of type
POINTER
.