UNPKG

webgme-hfsm

Version:

WebGME Domain for creating Executable Heirarchical Finite State Machines (HFSMs). Contains metamodel, visualization, simulation, and code generation for Heirarchical Finite State Machines (HFSMs) following the UML State Machine specification.

40 lines (30 loc) 2.17 kB
<div class="diagram"> <svg width="100" height="50" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <circle cx="20" cy="20" r="10"/> <circle cx="180" cy="75" r="15"/> <circle cx="180" cy="75" r="13" fill="#FFFFFF"/> <circle cx="180" cy="75" r="10"/> <rect x="60" y="60" rx="10" ry="10" width="50" height="30" fill="#FFFFFF" stroke="black" stroke-width="2px"/> <path fill="none" stroke="#000000" d="M60,69 L110,69" stroke-width="2"></path> <text x="85" y="68" font-family="Verdana" text-anchor="middle" font-size="8" fill="#000000">A</text> <rect x="110" y="20" rx="10" ry="10" width="50" height="30" fill="#FFFFFF" stroke="black" stroke-width="2px"/> <path fill="none" stroke="#000000" d="M110,29 L160,29" stroke-width="2"></path> <text x="135" y="28" font-family="Verdana" text-anchor="middle" font-size="8" fill="#000000">B</text> <rect x="40" y="20" rx="10" ry="10" width="50" height="30" fill="#FFFFFF" stroke="black" stroke-width="2px"/> <path fill="none" stroke="#000000" d="M40,29 L90,29" stroke-width="2"></path> <text x="65" y="28" font-family="Verdana" text-anchor="middle" font-size="8" fill="#000000">C</text> <path fill="none" stroke="#000000" d="M20,20 L20,75 L60,75" stroke-width="2"></path> <path fill="#000000" stroke="#000000" d="M58,75 l-8,-4 l0,8z" stroke-width="2"></path> <path fill="none" stroke="#000000" d="M110,75 L165,75" stroke-width="2"></path> <path fill="#000000" stroke="#000000" d="M163,75 l-8,-4 l0,8z" stroke-width="2"></path> <path fill="none" stroke="#000000" d="M20,20 L20,35 L40,35" stroke-width="2"></path> <path fill="#000000" stroke="#000000" d="M38,35 l-8,-4 l0,8z" stroke-width="2"></path> <path fill="none" stroke="#000000" d="M90,35 L110,35" stroke-width="2"></path> <path fill="#000000" stroke="#000000" d="M108,35 l-8,-4 l0,8z" stroke-width="2"></path> <path fill="none" stroke="#000000" d="M160,35 L180,35 L180, 60" stroke-width="2"></path> <path fill="#000000" stroke="#000000" d="M180,58 l-4,-8 l8,0z" stroke-width="2"></path> </svg> <div class="name"></div> </div>