forked from stratum/stratum
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UML for tdi_table_manager updates (#300)
- PlantUML files for the `TdiExternManager` and `TdiTableAnnex` class diagrams and `.png` files for the `images` folder. Signed-off-by: Derek Foster <[email protected]>
- Loading branch information
Showing
4 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
@startuml | ||
hide empty attributes | ||
hide empty methods | ||
hide circle | ||
|
||
class P4InfoManager { | ||
+ InitializeAndVerify() | ||
+ FindResourceTypeByID() | ||
.. | ||
- ProcessPreamble() | ||
.. | ||
- all_resource_ids_ | ||
- all_resource_names_ | ||
- id_to_resource_type_map | ||
} | ||
|
||
class P4ExternManager { | ||
+ RegisterExterns() | ||
} | ||
class TdiExternManager { | ||
{static}+ CreateInstance() | ||
+ RegisterExterns() | ||
.. | ||
+ FindPktModMeterByID() | ||
+ FindPktModMeterByName() | ||
+ FindDirectPktModMeterByID() | ||
+ FindDirectPktModMeterByName() | ||
} | ||
class Es2kExternManager { | ||
{static}+ CreateInstance() | ||
+ RegisterExterns() | ||
.. | ||
+ FindPktModMeterByID() | ||
+ FindPktModMeterByName() | ||
+ FindDirectPktModMeterByID() | ||
+ FindDirectPktModMeterByName() | ||
.. | ||
+ direct_pkt_mod_meter_map_size() | ||
+ pkt_mod_meter_map_size() | ||
+ statistics() | ||
.. | ||
- direct_pkt_mod_meter_map_ | ||
- pkt_mod_meter_map_ | ||
} | ||
P4ExternManager <|-- TdiExternManager | ||
TdiExternManager <|-- Es2kExternManager | ||
P4InfoManager --> P4ExternManager | ||
Es2kExternManager ..> "callback" P4InfoManager | ||
|
||
class P4ResourceMap <<template>> { | ||
+ BuildMaps() | ||
+ FindByID() | ||
+ FindByName() | ||
.. | ||
+ resource_type() | ||
+ size() | ||
} | ||
P4InfoManager *-- P4ResourceMap | ||
Es2kExternManager *-- P4ResourceMap | ||
|
||
class TdiTableManager | ||
TdiTableManager -> P4InfoManager | ||
TdiTableManager --> TdiExternManager | ||
|
||
class TdiTargetFactory { | ||
+ CreateTdiExternManager() | ||
} | ||
class Es2kTargetFactory { | ||
+ CreateTdiExternManager() | ||
} | ||
TdiTargetFactory <|-- Es2kTargetFactory | ||
TdiTableManager -> TdiTargetFactory | ||
TdiTargetFactory .> "creates" TdiExternManager | ||
Es2kTargetFactory .> "creates" Es2kExternManager | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@startuml | ||
hide empty attributes | ||
hide empty methods | ||
hide circle | ||
|
||
class TdiTableAnnex { | ||
{static} + CreateInstance() | ||
+ Initialize() | ||
.. | ||
+ BuildDirPktModTableData() | ||
+ ReadDirPktModMeterEntry() | ||
+ ReadPktModMeterEntry() | ||
+ WritePktModMeterEntry() | ||
} | ||
class Es2kTableAnnex { | ||
{static} + CreateInstance() | ||
+ Initialize() | ||
.. | ||
+ BuildDirPktModTableData() | ||
+ ReadDirPktModMeterEntry() | ||
+ ReadPktModMeterEntry() | ||
+ WritePktModMeterEntry() | ||
} | ||
TdiTableAnnex <|-- Es2kTableAnnex | ||
'TdiTableAnnex ..> TdiExternManager | ||
Es2kTableAnnex -> Es2kExternManager | ||
|
||
TdiExternManager <|-- Es2kExternManager | ||
|
||
class TdiTableManager | ||
TdiTableManager --> TdiExternManager | ||
TdiTableManager --> TdiTableAnnex | ||
TdiTableManager --> TdiTargetFactory | ||
|
||
class TdiTargetFactory { | ||
'+ CreateTdiExternManager() | ||
+ CreateTdiTableAnnex() | ||
} | ||
class Es2kTargetFactory { | ||
'+ CreateTdiExternManager() | ||
+ CreateTdiTableAnnex() | ||
} | ||
TdiTargetFactory <|-- Es2kTargetFactory | ||
TdiTargetFactory -> TdiTableAnnex | ||
'TdiTargetFactory -> TdiExternManager | ||
Es2kTargetFactory -> Es2kTableAnnex | ||
'Es2kTargetFactory -> Es2kExternManager | ||
|
||
@enduml |