DynBindModelExamples: Difference between revisions
Jump to navigation
Jump to search
m →F |
m →F |
||
| Line 33: | Line 33: | ||
select f1 end | select f1 end | ||
C1 | C1 | ||
redefine f1, g1 | |||
select g1 end | |||
select | |||
feature | feature | ||
f1 do ... end | |||
g1 do ... end | |||
end | end | ||
</code> | </code> | ||
| Line 48: | Line 47: | ||
C_1 \mapsto \left\{ f_1 \mapsto \underline{C_1.f_1}, g_1 \mapsto \underline{C_1.g_1} \right\}, | 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_2 \mapsto \left\{ f_2 \mapsto \underline{C_2.f_2}, g_2 \mapsto \underline{C_2.g_2} \right\}, | ||
C_3 \mapsto \left\{ | C_3 \mapsto \left\{ f_1 \mapsto \underline{C_3.f_1}, g_1 \mapsto \underline{C_3.g_1} \right\} | ||
\right\} | \right\} | ||
</math> | </math> | ||
| Line 55: | Line 54: | ||
C_2 \mapsto \left\{ | C_2 \mapsto \left\{ | ||
C_1 \mapsto \left\{ f_1 \mapsto f_2, g_1 \mapsto g_2 \right\} | C_1 \mapsto \left\{ f_1 \mapsto f_2, g_1 \mapsto g_2 \right\} | ||
\right\} | \right\} | ||
\right\} | \right\} | ||
</math> | </math> | ||
*<math>\alpha = \left\{ | *<math>\alpha = \left\{ | ||
C_2 \mapsto \left\{ C_1 \right\}, | |||
C_3 \mapsto \left\{ C_2, C_1 \right\} | |||
\right\} | \right\} | ||
</math> | </math> | ||
*<math>\sigma = \left\{ | *<math>\sigma = \left\{ | ||
C_3 \mapsto \left\{ C_2 \mapsto \left\{ f_1 \right\}, C_2 \mapsto \left\{ g_1 \right\} \right\} | |||
\right\} | \right\} | ||
</math> | </math> | ||
Revision as of 18:48, 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 redefine f1, g1 select g1 end feature f1 do ... end g1 do ... end end |
We get: