{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-statecharts",
  "id": "statecharts",
  "kind": "model",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-design-patterns-core",
    "json": "https://banes-lab.com/json/records/layer/design-patterns-core",
    "label": "Design Patterns Core",
    "markdown": "https://banes-lab.com/records/layer/design-patterns-core.md",
    "ref": "layer:design-patterns-core"
  },
  "name": "Statecharts",
  "ref": "architecture:statecharts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-finite-state-machine",
          "json": "https://banes-lab.com/json/records/architecture/finite-state-machine",
          "label": "Finite State Machine",
          "markdown": "https://banes-lab.com/records/architecture/finite-state-machine.md",
          "ref": "architecture:finite-state-machine"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-finite-state-machine",
          "json": "https://banes-lab.com/json/records/architecture/finite-state-machine",
          "label": "Finite State Machine",
          "markdown": "https://banes-lab.com/records/architecture/finite-state-machine.md",
          "ref": "architecture:finite-state-machine"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-separation-of-concerns",
          "json": "https://banes-lab.com/json/records/architecture/separation-of-concerns",
          "label": "Separation of Concerns",
          "markdown": "https://banes-lab.com/records/architecture/separation-of-concerns.md",
          "ref": "architecture:separation-of-concerns"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-hierarchical-states",
          "json": "https://banes-lab.com/json/records/lexicon/hierarchical-states",
          "label": "Hierarchical States",
          "markdown": "https://banes-lab.com/records/lexicon/hierarchical-states.md",
          "ref": "lexicon:hierarchical-states"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-parallel-regions",
          "json": "https://banes-lab.com/json/records/lexicon/parallel-regions",
          "label": "Parallel Regions",
          "markdown": "https://banes-lab.com/records/lexicon/parallel-regions.md",
          "ref": "lexicon:parallel-regions"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-guarded-transitions",
          "json": "https://banes-lab.com/json/records/lexicon/guarded-transitions",
          "label": "Guarded Transitions",
          "markdown": "https://banes-lab.com/records/lexicon/guarded-transitions.md",
          "ref": "lexicon:guarded-transitions"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-flat-state-explosion",
          "json": "https://banes-lab.com/json/records/lexicon/flat-state-explosion",
          "label": "Flat State Explosion",
          "markdown": "https://banes-lab.com/records/lexicon/flat-state-explosion.md",
          "ref": "lexicon:flat-state-explosion"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-tooling-complexity",
          "json": "https://banes-lab.com/json/records/lexicon/tooling-complexity",
          "label": "Tooling Complexity",
          "markdown": "https://banes-lab.com/records/lexicon/tooling-complexity.md",
          "ref": "lexicon:tooling-complexity"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-statecharts-tooling-complexity",
          "json": "https://banes-lab.com/json/records/tension/statecharts-tooling-complexity",
          "label": "Statecharts / Tooling Complexity",
          "markdown": "https://banes-lab.com/records/tension/statecharts-tooling-complexity.md",
          "ref": "tension:statecharts-tooling-complexity"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/algorithms#algorithms-statecharts",
          "json": "https://banes-lab.com/json/records/algorithms/statecharts",
          "label": "Statecharts",
          "markdown": "https://banes-lab.com/records/algorithms/statecharts.md",
          "ref": "algorithms:statecharts"
        }
      ],
      "relation": "contracts"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-flat-state-explosion",
          "json": "https://banes-lab.com/json/records/lexicon/flat-state-explosion",
          "label": "Flat State Explosion",
          "markdown": "https://banes-lab.com/records/lexicon/flat-state-explosion.md",
          "ref": "lexicon:flat-state-explosion"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-contextual",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-contextual",
          "label": "contextual",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-contextual.md",
          "ref": "vocabulary:severity-contextual"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-behavioral-patterns",
          "json": "https://banes-lab.com/json/records/architecture-category/behavioral-patterns",
          "label": "Behavioral Patterns",
          "markdown": "https://banes-lab.com/records/architecture-category/behavioral-patterns.md",
          "ref": "architecture-category:behavioral-patterns"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-core-modular-design",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-core-modular-design",
          "label": "Core Modular Design",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-core-modular-design.md",
          "ref": "chapter:/ontology#architecture-category-core-modular-design"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-behavioral-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-behavioral-patterns",
          "label": "Behavioral Patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-behavioral-patterns.md",
          "ref": "chapter:/ontology#architecture-category-behavioral-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-behavioral-patterns",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-behavioral-patterns",
          "label": "Behavioral Patterns",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-behavioral-patterns.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-behavioral-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-quality-attributes",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-quality-attributes",
          "label": "Quality Attributes",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-quality-attributes.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-quality-attributes"
        },
        {
          "href": "https://banes-lab.com/ontology/algorithms#algorithms-domain-architecture",
          "json": "https://banes-lab.com/json/ontology/algorithms/algorithms-domain-architecture",
          "label": "Architecture",
          "markdown": "https://banes-lab.com/ontology/algorithms/algorithms-domain-architecture.md",
          "ref": "chapter:/ontology/algorithms#algorithms-domain-architecture"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "summary": "A conceptual representation of a state machine extended with nested states and parallel regions.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-factory-pattern",
      "json": "https://banes-lab.com/json/records/architecture/factory-pattern",
      "label": "Factory Pattern",
      "markdown": "https://banes-lab.com/records/architecture/factory-pattern.md",
      "ref": "architecture:factory-pattern"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-finite-state-machine",
      "json": "https://banes-lab.com/json/records/architecture/finite-state-machine",
      "label": "Finite State Machine",
      "markdown": "https://banes-lab.com/records/architecture/finite-state-machine.md",
      "ref": "architecture:finite-state-machine"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "const fooChart = {\n  initial: \"idle\",\n  states: { idle: {}, playing: {} },\n  parallel: { volume: { states: { muted: {}, loud: {} } } },\n};",
    "before": "type S = \"idleMuted\" | \"idleLoud\" | \"playingMuted\" | \"playingLoud\";",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "behavior",
    "state modeling",
    "hierarchy"
  ],
  "severity": "contextual"
}
