DynBindModelExamples: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m →F |
||
| Line 42: | Line 42: | ||
</code> | </code> | ||
|} | |} | ||
We get: | |||
*<math>S = \left\{ C_1, C_2, C_3 \right\} </math> | |||
*<math>\tau = | |||
\left\{ | |||
C_1 \mapsto \left\{ f_1 \mapsto \underline{C_1.f_1}, g_1 \mapsto \underline{C_1.g_1} \right\}, | |||
C_2 \mapsto \left\{ f_2 \mapsto \underline{C_2.f_2}, g_2 \mapsto \underline{C_2.g_2} \right\}, | |||
C_3 \mapsto \left\{ f_3 \mapsto \underline{C_3.f_3}, g_3 \mapsto \underline{C_3.g_3} \right\} | |||
\right\} | |||
</math> | |||
*<math>\eta = | |||
\left\{ | |||
C \mapsto \left\{ | |||
B \mapsto \left\{ f \mapsto f1 \right\} | |||
\right\}, | |||
D \mapsto \left\{ | |||
B \mapsto \left\{ f \mapsto f2, f \mapsto f3 \right\} | |||
\right\} | |||
\right\} | |||
</math> | |||
*<math>\alpha = \left\{ | |||
C \mapsto \left\{ B \right\}, | |||
D \mapsto \left\{ B, C \right\} | |||
\right\} | |||
</math> | |||
*<math>\sigma = \left\{ | |||
D \mapsto \left\{ C \mapsto \left\{ f1 \right\} \right\} | |||
\right\} | |||
</math> | |||
Revision as of 18:41, 6 October 2006
This page shows
F
class C1 feature f1 do ... end g1 do ... end end |
class C2 inherit B rename f1 as f2, g1 as g2 redefine f2, g2 end feature f2 do ... end g2 do ... end end |
class C3 inherit C2 select f1 end C1 rename f1 as f3, g as g3 redefine f3, g3 select g3 end feature f3 do ... end g3 do ... end end |
We get: