1460897262-d50cff9d-b7d4-4134-b6c7-639ceb2735df

1. A recording and reproduction apparatus for a recording medium including a plurality of information layers, the recording and reproduction apparatus comprising:
a focusing signal generation section for generating a focusing signal F+ and a focusing signal F\u2212 in accordance with a light beam reflected by the recording medium;
a focusing control section for generating a focusing error signal in accordance with a difference between the focusing signal F+ and the focusing signal F\u2212, and performing focusing control for maintaining a distance between a focal point of the light beam directed to the recording medium and a target information layer among the plurality of information layers within a prescribed tolerable range in accordance with the focusing error signal; and
a gain setting section for setting a focusing servo gain in accordance with the focusing error signal,
wherein the focusing signal generation section generates the focusing signal F+ and the focusing signal F\u2212 so that a component of the focusing signal F+ and a component of the focusing signal F\u2212 which are based on the light beam reflected by an information layer other than the target information layer have substantially an equal value to each other while the focusing control section is performing the focusing control.
2. A recording and reproduction apparatus according to claim 1, wherein the gain setting section includes:
an amplitude detection circuit for detecting an amplitude value of the focusing error signal corresponding to the target information layer in the state where an opened loop for the focusing control is formed; and
a gain setting circuit for comparing the amplitude value detected by the amplitude detection section and a reference amplitude value, and setting a focusing servo gain in accordance with the comparison result.
3. A recording and reproduction apparatus according to claim 2, further comprising an optical pickup for moving the focal point of the light beam in a direct ion perpendicular to a surface of the recording medium,
wherein the amplitude detection circuit detects the amplitude of the focusing error signal while the focal point of the light beam is moving in a direction perpendicular to the recording medium.
4. A recording and reproduction apparatus for a recording medium including a plurality of information layers, the recording and reproduction apparatus comprising:
a tracking signal generation section for generating a tracking signal T+ and a tracking signal T\u2212 in accordance with a light beam reflected by the recording medium;
a tracking control section for generating a tracking error signal in accordance with a difference between the tracking signal T+ and the tracking signal T\u2212, and performing tracking control for causing the light beam directed to the recording medium to follow one of a plurality of tracks formed on a target information layer among the plurality of information layers; and
a gain setting section for setting a tracking servo gain in accordance with the tracking error signal,
wherein the tracking signal generation section generates the tracking signal T+ and the tracking signal T\u2212 so that a component of the tracking signal T+ and a component of the tracking signal T\u2212 which are based on the light beam reflected by an information layer other than the target information layer have substantially an equal value to each other while the tracking control section is performing the tracking control.
5. A recording and reproduction apparatus according to claim 4, wherein the gain setting section includes:
an amplitude detection circuit for detecting an amplitude value of the tracking error signal corresponding to the target information layer in the state where an opened loop for the tracking control is formed; and
a gain setting circuit for comparing the amplitude value detected by the amplitude detection circuit and a reference amplitude value, and setting a tracking servo gain in accordance with the comparison result.
6. A recording and reproduction apparatus according to claim 4, wherein:
the plurality of tracks include wobble tracks meandering at a prescribed cycle in a track direction, and
the gain setting section includes:
an amplitude detection circuit for detecting an amplitude value of a wobble signal included in the tracking error signal in the state where a closed loop for the tracking control is formed; and
a gain setting circuit for comparing the amplitude value detected by the amplitude detection circuit and a reference amplitude value, and setting a tracking servo gain in accordance with the comparison result.
7. A recording and reproduction apparatus according to claim 6, wherein the gain setting circuit further sets a focusing servo gain in accordance with the comparison result.
8. A recording and reproduction method for a recording medium including a plurality of information layers, the recording and reproduction method comprising the steps of:
generating a focusing signal F+ and a focusing signal F\u2212 in accordance with a light beam reflected by the recording medium;
generating a focusing error signal in accordance with a difference between the focusing signal F+ and the focusing signal F\u2212, and performing focusing control for maintaining a distance between a focal point of the light beam directed to the recording medium and a target information layer among the plurality of information layers within a prescribed tolerable range in accordance with the focusing error signal; and
setting a focusing servo gain in accordance with the focusing error signal,
wherein a component of the focusing signal F+ and a component of the focusing signal F\u2212 which are based on the light beam reflected by an information layer other than the target information layer have substantially an equal value to each other while the focusing control section is performing the focusing control.
9. A recording and reproduction method for a recording medium including a plurality of information layers, the recording and reproduction method comprising the steps of:
generating a tracking signal T+ and a tracking signal T\u2212 in accordance with a light beam reflected by the recording medium;
generating a tracking error signal in accordance with a difference between the tracking signal T+ and the tracking signal T\u2212, and performing tracking control for causing the light beam directed to the recording medium to follow one of a plurality of tracks formed on a target information layer among the plurality of information layers; and
setting a tracking servo gain in accordance with the tracking error signal,
wherein a component of the tracking signal T+ and a component of the tracking signal T\u2212 which are based on the light beam reflected by an information layer other than the target information layer have substantially an equal value to each other while the tracking control section is performing the tracking control.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

We claim:

1. A computer-readable medium having computer-executable components, comprising:
a body of code that includes a function call that operates to cause the body of code to be hosted in a first hosting environment, the absence of the function call being operative to cause the body of code to be hosted in a second hosting environment.
2. The computer-readable medium of claim 2, wherein the body of code comprises an executable file.
3. The computer-readable medium of claim 1, wherein the function, when compiled, results in a byte signature within an executable code, the byte signature being indicative of the function call.
4. The computer-readable medium of claim 1, wherein the first hosting environment comprises a browser hosting environment.
5. The computer-readable medium of claim 4, wherein the second hosting environment comprises a standalone hosting environment
6. The computer-readable medium of claim 1, wherein the first hosting environment comprises a standalone hosting environment.
7. The computer-readable medium of claim 1, wherein the function comprises a public static function that, when called, results in the body of code being hosted in the first hosting environment.
8. The computer-readable medium of claim 7, wherein the public static function is called from within a public class included in the body of code.
9. A computer-readable medium having computer-executable components, comprising:
an executable file, comprising:
a first portion including computer-executable instructions operative for performing operations; and
a second portion including a function call which, when invoked, is operative to cause the executable file to be executed in an alternative hosting environment.
10. The computer-readable medium recited in claim 9, wherein failing to invoke the function call is operative to cause the executable file to be executed in a default hosting environment.
11. The computer-readable medium recited in claim 10, wherein the alternative hosting environment comprises a browser hosted environment and the default hosting environment comprises a standalone hosting environment.
12. The computer-readable medium recited in claim 9, wherein the alternative hosting environment comprises a browser hosted environment.
13. The computer-readable medium recited in claim 9, wherein the alternative hosting environment comprises a standalone hosting environment.
14. A computer-executable method of hosting an executable file in a hosting environment, the method comprising:
providing a shell environment that is operative to launch the executable file in a default hosting environment common to other executable files; and
providing a function that, if called by the executable file, is operative to cause the executable file to be launched in an alternative hosting environment.
15. The computer-executable method recited in claim 14, wherein the default hosting environment comprises a standalone hosting environment.
16. The computer-executable method recited in claim 15, wherein the alternative hosting environment comprises a browser hosted environment.
17. The computer-executable method recited in claim 14, wherein the default hosting environment comprises a browser hosted environment.
18. The computer-executable method recited in claim 17, wherein the alternative hosting environment comprises a standalone hosting environment.
19. The computer-executable method recited in claim 14, wherein the function comprises a public static function.
20. The computer-executable method recited in claim 14, wherein the executable file is configured for execution in either the default hosting environment or the alternative hosting environment, and wherein the determination of whether to launch the executable file in either the default hosting environment or the alternative hosting environment is based substantially exclusively on the executable file being configured to call the function.