Structure/InitialArchitecture [ Rules ]

[ Top ] [ Structure ] [ Rules ]

SUMMARY

Transfotrm a SysML:Package into a HiLeS:Architecture. ($Rev: 134 $)

DESCRIPTION

This rule creates the HiLeS:HilesSystem initial architecture, the architecture is created from the SysML model's "Logical Solution" package. Blocks are added to the architecture starting from the the root block in the system's bdd diagram.

SEE ALSO

DOMAIN

SPECIFICATION

        relation InitialArchitecture
        {
            checkonly domain SysML p:Package {
                model = m:Model,
                name = pn,
            }
            enforece domain HiLeS a:Architecture {
                sytem = s:HilesSystem{}
                name = pn,
                isDefault = false,
                services = ser:Service{},
                payloads = apl:Payload{},
                blocks = abl:Block{},
                petriNet = pn:PetriNet{},
            }
            when {
                ModelToSystem(m, s);
                pn = "LogicalSolution";
            }
            where {
                StructuralBlock(p.getMainBlock(), blk);
                abl->append(blk)
            }
        }