Delete Lab3_MaisosLenteles/diagrams directory
This commit is contained in:
parent
dc619a585a
commit
43b840faa7
@ -1,258 +0,0 @@
|
||||
@startuml
|
||||
|
||||
title __LAB3_MAISOSLENTELES's Class Diagram__\n
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Benchmark {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Car {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.CarsGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.DemoExecution {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.ManualTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B1 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B2 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B1 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B2 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_putMap_jmhTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
namespace jmh_generated {
|
||||
class edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_removeCarMap_jmhTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.KsGui {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.MainWindow {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
abstract class edu.ktu.ds.lab3.gui.MainWindowMenu {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.Panels {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.Table {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.TableModel {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.ValidationException {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.EvaluableMap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashManager {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMapOa {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.Ks {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.Map {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.Parsable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.ParsableHashMap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.ParsableHashMapOa {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.ParsableMap {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
edu.ktu.ds.lab3.demo.Car .up.|> edu.ktu.ds.lab3.utils.Parsable
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B3
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B1 -up-|> edu.ktu.ds.lab3.demo.Benchmark.FullMap
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B2 -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B1
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B3 -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_FullMap_jmhType_B2
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B3
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B1 -up-|> edu.ktu.ds.lab3.demo.Benchmark
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B2 -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B1
|
||||
edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B3 -up-|> edu.ktu.ds.lab3.demo.jmh_generated.Benchmark_jmhType_B2
|
||||
edu.ktu.ds.lab3.gui.MainWindow .up.|> java.awt.event.ActionListener
|
||||
edu.ktu.ds.lab3.gui.MainWindow -up-|> javax.swing.JFrame
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.demo.CarsGenerator : carsGenerator
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.MainWindowMenu : mainWindowMenu
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panButtons
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panParam1
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panParam2
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Table : table
|
||||
edu.ktu.ds.lab3.gui.MainWindowMenu .up.|> java.awt.event.ActionListener
|
||||
edu.ktu.ds.lab3.gui.MainWindowMenu -up-|> javax.swing.JMenuBar
|
||||
edu.ktu.ds.lab3.gui.Panels -up-|> javax.swing.JPanel
|
||||
edu.ktu.ds.lab3.gui.Table -up-|> javax.swing.JTable
|
||||
edu.ktu.ds.lab3.gui.TableModel -up-|> javax.swing.table.AbstractTableModel
|
||||
edu.ktu.ds.lab3.utils.HashMap .up.|> edu.ktu.ds.lab3.utils.EvaluableMap
|
||||
edu.ktu.ds.lab3.utils.HashMap o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.utils.HashMapOa .up.|> edu.ktu.ds.lab3.utils.EvaluableMap
|
||||
edu.ktu.ds.lab3.utils.HashMapOa o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.utils.HashMapOa o-- edu.ktu.ds.lab3.utils.HashMapOa.OpenAddressingType : oaType
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMap .up.|> edu.ktu.ds.lab3.utils.ParsableMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMap -up-|> edu.ktu.ds.lab3.utils.HashMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMapOa .up.|> edu.ktu.ds.lab3.utils.ParsableMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMapOa -up-|> edu.ktu.ds.lab3.utils.HashMapOa
|
||||
|
||||
|
||||
right footer
|
||||
|
||||
|
||||
PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
|
||||
For more information about this tool, please contact philippe.mesmeur@gmail.com
|
||||
endfooter
|
||||
|
||||
@enduml
|
@ -1,128 +0,0 @@
|
||||
@startuml
|
||||
|
||||
title __DEMO's Class Diagram__\n
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Benchmark {
|
||||
+ elementCount : int
|
||||
~ cars : List<Car>
|
||||
~ ids : List<String>
|
||||
+ generateIdsAndCars()
|
||||
{static} + main()
|
||||
+ putMap()
|
||||
{static} + putMappings()
|
||||
+ removeCarMap()
|
||||
{static} ~ generateCars()
|
||||
{static} ~ generateIds()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Benchmark.FullMap {
|
||||
~ cars : List<Car>
|
||||
~ carsMap : HashMap<String, Car>
|
||||
~ ids : List<String>
|
||||
+ fillCarMap()
|
||||
+ generateIdsAndCars()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Car {
|
||||
{static} - currentYear : int
|
||||
- make : String
|
||||
{static} - maxPrice : double
|
||||
- mileage : int
|
||||
{static} - minPrice : double
|
||||
{static} - minYear : int
|
||||
- model : String
|
||||
- price : double
|
||||
- year : int
|
||||
+ Car()
|
||||
+ Car()
|
||||
+ Car()
|
||||
+ Car()
|
||||
+ equals()
|
||||
+ getMake()
|
||||
+ getMileage()
|
||||
+ getModel()
|
||||
+ getPrice()
|
||||
+ getYear()
|
||||
+ hashCode()
|
||||
+ parse()
|
||||
+ setMileage()
|
||||
+ setPrice()
|
||||
+ toString()
|
||||
- validate()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.Car.Builder {
|
||||
{static} - MODELS : String[][]
|
||||
{static} - RANDOM : Random
|
||||
- make : String
|
||||
- mileage : int
|
||||
- model : String
|
||||
- price : double
|
||||
- year : int
|
||||
+ build()
|
||||
+ buildRandom()
|
||||
+ make()
|
||||
+ mileage()
|
||||
+ model()
|
||||
+ price()
|
||||
+ year()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.CarsGenerator {
|
||||
{static} - ID_CODE : String
|
||||
- cars : Queue<Car>
|
||||
- keys : Queue<String>
|
||||
{static} - serNr : int
|
||||
{static} + generateId()
|
||||
{static} + generateShuffleCars()
|
||||
{static} + generateShuffleIds()
|
||||
+ generateShuffleIdsAndCars()
|
||||
+ getCar()
|
||||
+ getCarId()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.DemoExecution {
|
||||
{static} + main()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.demo {
|
||||
class edu.ktu.ds.lab3.demo.ManualTest {
|
||||
{static} + executeTest()
|
||||
{static} + main()
|
||||
{static} - executeCarMapOaTests()
|
||||
{static} - executeCarMapTests()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
edu.ktu.ds.lab3.demo.Benchmark +-down- edu.ktu.ds.lab3.demo.Benchmark.FullMap
|
||||
edu.ktu.ds.lab3.demo.Car .up.|> edu.ktu.ds.lab3.utils.Parsable
|
||||
edu.ktu.ds.lab3.demo.Car +-down- edu.ktu.ds.lab3.demo.Car.Builder
|
||||
|
||||
|
||||
right footer
|
||||
|
||||
|
||||
PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
|
||||
For more information about this tool, please contact philippe.mesmeur@gmail.com
|
||||
endfooter
|
||||
|
||||
@enduml
|
@ -1,154 +0,0 @@
|
||||
@startuml
|
||||
|
||||
title __GUI's Class Diagram__\n
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.KsGui {
|
||||
{static} - formatStartOfLine : boolean
|
||||
{static} - lineNr : int
|
||||
{static} + ou()
|
||||
{static} + ou()
|
||||
{static} + oun()
|
||||
{static} + oun()
|
||||
{static} + ounArgs()
|
||||
{static} + ounerr()
|
||||
{static} + ounerr()
|
||||
{static} + ounerr()
|
||||
{static} + setFormatStartOfLine()
|
||||
{static} - getStartOfLine()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.MainWindow {
|
||||
{static} - MESSAGES : ResourceBundle
|
||||
{static} - NUMBER_OF_BUTTONS : int
|
||||
{static} - TF_WIDTH : int
|
||||
- cmbCollisionTypes : JComboBox<String>
|
||||
- cmbHashFunctions : JComboBox<String>
|
||||
- colWidth : int
|
||||
- initialCapacity : int
|
||||
- loadFactor : float
|
||||
- map : ParsableMap<String, Car>
|
||||
- panEast : JPanel
|
||||
- panParam12 : JPanel
|
||||
- panParam12Events : JPanel
|
||||
- scrollEast : JScrollPane
|
||||
- scrollEvents : JScrollPane
|
||||
- scrollParam12 : JScrollPane
|
||||
- scrollTable : JScrollPane
|
||||
- sizeOfGenSet : int
|
||||
- sizeOfInitialSubSet : int
|
||||
- taEvents : JTextArea
|
||||
- taInput : JTextArea
|
||||
+ MainWindow()
|
||||
+ actionPerformed()
|
||||
{static} + createAndShowGUI()
|
||||
+ mapGeneration()
|
||||
+ mapPut()
|
||||
- appearance()
|
||||
- createMap()
|
||||
- handleButtons()
|
||||
- initComponents()
|
||||
- readMapParameters()
|
||||
- updateHashtableParameters()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.MainWindow.NotNegativeNumberVerifier {
|
||||
+ verify()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
abstract class edu.ktu.ds.lab3.gui.MainWindowMenu {
|
||||
{static} - MESSAGES : ResourceBundle
|
||||
+ MainWindowMenu()
|
||||
{abstract} + actionPerformed()
|
||||
- initComponents()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.Panels {
|
||||
{static} - SPACING : int
|
||||
- btns : List<JButton>
|
||||
- tfTexts : List<String>
|
||||
- tfs : List<JTextField>
|
||||
+ Panels()
|
||||
+ Panels()
|
||||
+ getButtons()
|
||||
+ getParametersOfTable()
|
||||
+ getTfOfTable()
|
||||
- initGridOfButtons()
|
||||
- initTableOfParameters()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.Table {
|
||||
{static} + ARROW : String
|
||||
+ prepareRenderer()
|
||||
+ setModel()
|
||||
- appearance()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.TableModel {
|
||||
- delimiter : String
|
||||
- maxChainSize : int
|
||||
- table : String[][]
|
||||
+ TableModel()
|
||||
+ getColumnCount()
|
||||
+ getColumnName()
|
||||
+ getRowCount()
|
||||
+ getValueAt()
|
||||
- split()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.gui {
|
||||
class edu.ktu.ds.lab3.gui.ValidationException {
|
||||
- value : String
|
||||
+ ValidationException()
|
||||
+ ValidationException()
|
||||
+ getValue()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
edu.ktu.ds.lab3.gui.MainWindow .up.|> java.awt.event.ActionListener
|
||||
edu.ktu.ds.lab3.gui.MainWindow -up-|> javax.swing.JFrame
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.demo.CarsGenerator : carsGenerator
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.MainWindowMenu : mainWindowMenu
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panButtons
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panParam1
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Panels : panParam2
|
||||
edu.ktu.ds.lab3.gui.MainWindow o-- edu.ktu.ds.lab3.gui.Table : table
|
||||
edu.ktu.ds.lab3.gui.MainWindow +-down- edu.ktu.ds.lab3.gui.MainWindow.NotNegativeNumberVerifier
|
||||
edu.ktu.ds.lab3.gui.MainWindow.NotNegativeNumberVerifier -up-|> javax.swing.InputVerifier
|
||||
edu.ktu.ds.lab3.gui.MainWindowMenu .up.|> java.awt.event.ActionListener
|
||||
edu.ktu.ds.lab3.gui.MainWindowMenu -up-|> javax.swing.JMenuBar
|
||||
edu.ktu.ds.lab3.gui.Panels -up-|> javax.swing.JPanel
|
||||
edu.ktu.ds.lab3.gui.Table -up-|> javax.swing.JTable
|
||||
edu.ktu.ds.lab3.gui.TableModel -up-|> javax.swing.table.AbstractTableModel
|
||||
|
||||
|
||||
right footer
|
||||
|
||||
|
||||
PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
|
||||
For more information about this tool, please contact philippe.mesmeur@gmail.com
|
||||
endfooter
|
||||
|
||||
@enduml
|
@ -1,264 +0,0 @@
|
||||
@startuml
|
||||
|
||||
title __UTILS's Class Diagram__\n
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.EvaluableMap {
|
||||
{abstract} + getLastUpdated()
|
||||
+ getMaxChainSize()
|
||||
{abstract} + getNumberOfOccupied()
|
||||
{abstract} + getRehashesCounter()
|
||||
{abstract} + getTableCapacity()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashManager {
|
||||
{static} + hash()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
enum HashType {
|
||||
DIVISION
|
||||
JCF
|
||||
JCF7
|
||||
MULTIPLICATION
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMap {
|
||||
{static} + DEFAULT_HASH_TYPE : HashType
|
||||
{static} + DEFAULT_INITIAL_CAPACITY : int
|
||||
{static} + DEFAULT_LOAD_FACTOR : float
|
||||
# chainsCounter : int
|
||||
# lastUpdatedChain : int
|
||||
# loadFactor : float
|
||||
# maxChainSize : int
|
||||
# rehashesCounter : int
|
||||
# size : int
|
||||
# table : Node<K, V>[]
|
||||
+ HashMap()
|
||||
+ HashMap()
|
||||
+ HashMap()
|
||||
+ HashMap()
|
||||
+ HashMap()
|
||||
+ clear()
|
||||
+ contains()
|
||||
+ containsValue()
|
||||
+ get()
|
||||
+ getLastUpdated()
|
||||
+ getMaxChainSize()
|
||||
+ getNumberOfOccupied()
|
||||
+ getRehashesCounter()
|
||||
+ getTableCapacity()
|
||||
+ isEmpty()
|
||||
+ put()
|
||||
+ remove()
|
||||
+ replace()
|
||||
+ size()
|
||||
+ toString()
|
||||
- getInChain()
|
||||
- rehash()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMap.Node {
|
||||
# next : Node<K, V>
|
||||
+ toString()
|
||||
# Node()
|
||||
# Node()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMapOa {
|
||||
{static} + DEFAULT_HASH_TYPE : HashType
|
||||
{static} + DEFAULT_INITIAL_CAPACITY : int
|
||||
{static} + DEFAULT_LOAD_FACTOR : float
|
||||
{static} + DEFAULT_OPEN_ADDRESSING_TYPE : OpenAddressingType
|
||||
# lastUpdated : int
|
||||
# loadFactor : float
|
||||
# numberOfOccupied : int
|
||||
# rehashesCounter : int
|
||||
# size : int
|
||||
# table : Entry<K, V>[]
|
||||
- DELETED : Entry<K, V>
|
||||
+ HashMapOa()
|
||||
+ HashMapOa()
|
||||
+ HashMapOa()
|
||||
+ HashMapOa()
|
||||
+ HashMapOa()
|
||||
+ clear()
|
||||
+ contains()
|
||||
+ containsValue()
|
||||
+ get()
|
||||
+ getLastUpdated()
|
||||
+ getNumberOfOccupied()
|
||||
+ getRehashesCounter()
|
||||
+ getTableCapacity()
|
||||
+ isEmpty()
|
||||
+ put()
|
||||
+ remove()
|
||||
+ replace()
|
||||
+ size()
|
||||
+ toString()
|
||||
- calculatePosition()
|
||||
- findPosition()
|
||||
- rehash()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.HashMapOa.Entry {
|
||||
+ toString()
|
||||
# Entry()
|
||||
# Entry()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
enum OpenAddressingType {
|
||||
DOUBLE_HASHING
|
||||
LINEAR
|
||||
QUADRATIC
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.Ks {
|
||||
{static} - dataFolder : String
|
||||
{static} - errorNr : int
|
||||
{static} - formatStartOfLine : boolean
|
||||
{static} - keyboard : BufferedReader
|
||||
{static} - lineNr : int
|
||||
{static} - serr : PrintStream
|
||||
{static} - sout : PrintStream
|
||||
{static} + er()
|
||||
{static} + erf()
|
||||
{static} + ern()
|
||||
{static} + getDataFolder()
|
||||
{static} + giveDouble()
|
||||
{static} + giveDouble()
|
||||
{static} + giveFileName()
|
||||
{static} + giveInt()
|
||||
{static} + giveInt()
|
||||
{static} + giveLong()
|
||||
{static} + giveLong()
|
||||
{static} + giveString()
|
||||
{static} + ou()
|
||||
{static} + ouf()
|
||||
{static} + oufln()
|
||||
{static} + oun()
|
||||
{static} + ounn()
|
||||
{static} + out()
|
||||
{static} + printMapModel()
|
||||
{static} + setDataFolder()
|
||||
{static} - split()
|
||||
{static} - summaryStatistics()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.Map {
|
||||
{abstract} + clear()
|
||||
{abstract} + contains()
|
||||
{abstract} + containsValue()
|
||||
{abstract} + get()
|
||||
{abstract} + isEmpty()
|
||||
{abstract} + put()
|
||||
{abstract} + remove()
|
||||
{abstract} + replace()
|
||||
{abstract} + size()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.Parsable {
|
||||
{abstract} + parse()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.ParsableHashMap {
|
||||
- keyCreateFunction : Function<String, K>
|
||||
- valueCreateFunction : Function<String, V>
|
||||
+ ParsableHashMap()
|
||||
+ ParsableHashMap()
|
||||
+ getMapModel()
|
||||
+ load()
|
||||
+ println()
|
||||
+ put()
|
||||
+ save()
|
||||
{static} - create()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
class edu.ktu.ds.lab3.utils.ParsableHashMapOa {
|
||||
- keyCreateFunction : Function<String, K>
|
||||
- valueCreateFunction : Function<String, V>
|
||||
+ ParsableHashMapOa()
|
||||
+ ParsableHashMapOa()
|
||||
+ getMapModel()
|
||||
+ load()
|
||||
+ println()
|
||||
+ put()
|
||||
+ save()
|
||||
{static} - create()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace edu.ktu.ds.lab3.utils {
|
||||
interface edu.ktu.ds.lab3.utils.ParsableMap {
|
||||
{abstract} + getMapModel()
|
||||
{abstract} + load()
|
||||
{abstract} + println()
|
||||
{abstract} + put()
|
||||
{abstract} + save()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
edu.ktu.ds.lab3.utils.HashManager +-down- edu.ktu.ds.lab3.utils.HashManager.HashType
|
||||
edu.ktu.ds.lab3.utils.HashMap .up.|> edu.ktu.ds.lab3.utils.EvaluableMap
|
||||
edu.ktu.ds.lab3.utils.HashMap o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.utils.HashMap +-down- edu.ktu.ds.lab3.utils.HashMap.Node
|
||||
edu.ktu.ds.lab3.utils.HashMap.Node o-- K : key
|
||||
edu.ktu.ds.lab3.utils.HashMap.Node o-- V : value
|
||||
edu.ktu.ds.lab3.utils.HashMapOa .up.|> edu.ktu.ds.lab3.utils.EvaluableMap
|
||||
edu.ktu.ds.lab3.utils.HashMapOa o-- edu.ktu.ds.lab3.utils.HashManager.HashType : ht
|
||||
edu.ktu.ds.lab3.utils.HashMapOa o-- edu.ktu.ds.lab3.utils.HashMapOa.OpenAddressingType : oaType
|
||||
edu.ktu.ds.lab3.utils.HashMapOa +-down- edu.ktu.ds.lab3.utils.HashMapOa.Entry
|
||||
edu.ktu.ds.lab3.utils.HashMapOa +-down- edu.ktu.ds.lab3.utils.HashMapOa.OpenAddressingType
|
||||
edu.ktu.ds.lab3.utils.HashMapOa.Entry o-- K : key
|
||||
edu.ktu.ds.lab3.utils.HashMapOa.Entry o-- V : value
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMap .up.|> edu.ktu.ds.lab3.utils.ParsableMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMap -up-|> edu.ktu.ds.lab3.utils.HashMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMapOa .up.|> edu.ktu.ds.lab3.utils.ParsableMap
|
||||
edu.ktu.ds.lab3.utils.ParsableHashMapOa -up-|> edu.ktu.ds.lab3.utils.HashMapOa
|
||||
|
||||
|
||||
right footer
|
||||
|
||||
|
||||
PlantUML diagram generated by SketchIt! (https://bitbucket.org/pmesmeur/sketch.it)
|
||||
For more information about this tool, please contact philippe.mesmeur@gmail.com
|
||||
endfooter
|
||||
|
||||
@enduml
|
Loading…
Reference in New Issue
Block a user