@startuml
title Diagramme d'objets – Arbre de Huffman

object "freq : FrequencyTable"
"freq : FrequencyTable" : freqR = int[256]
"freq : FrequencyTable" : freqG = int[256]
"freq : FrequencyTable" : freqB = int[256]


object "HuffmanR : HuffmanTree"
"HuffmanR : HuffmanTree" : root = Node3


object "Node3 : HuffmanNode"
"Node3 : HuffmanNode" : value = 253
"Node3 : HuffmanNode" : frequence = 15

object "Node1 : HuffmanNode"
"Node1 : HuffmanNode" : value = 150
"Node1 : HuffmanNode" : frequence = 7

object "Node2 : HuffmanNode"
"Node2 : HuffmanNode" : value = 120
"Node2 : HuffmanNode" : frequence = 8

"freq : FrequencyTable" --> "HuffmanR : HuffmanTree"
"HuffmanR : HuffmanTree" -- "Node3 : HuffmanNode" : root
"Node3 : HuffmanNode" -- "Node1 : HuffmanNode" : left
"Node3 : HuffmanNode" -- "Node2 : HuffmanNode" : right


@enduml
