How santhoshharsha375-afk/supplysphere-global-supply-chain-platform works
SupplySphere is a JDK-only supply-chain platform with console and web front ends sharing search and operations services. The main workflow loads a document corpus, searches it in four modes, and presents ranked results; separate operational workflows analyze network throughput, schedule deliveries, validate codes, find duplicates, and report algorithm choices. The graph preserves those product branches and the algorithm families documented in the README. Some operational and web wiring is supported by the README and source index rather than full excerpts, so unsampled details are not expanded.
Main entry points: OperationsService.java Operations facade · SearchService.java Search facade · QueryEngine.java Query engine · SearchConsole.java Command console
Components 29
User interfaces
- Command console
src/com/supplysphere/ui/SearchConsole.java - Web dashboard and API
src/com/supplysphere/web/WebApp.java - Application launcher
src/SupplySphereApp.java
Knowledge search
- Search facade
src/com/supplysphere/service/SearchService.java - Corpus loading
src/com/supplysphere/dataset/CorpusLoader.java - Article repository
src/com/supplysphere/repository/ArticleRepository.java - Query engine
src/com/supplysphere/engine/QueryEngine.java - Ranked reports
src/com/supplysphere/engine/QueryReport.java - Algorithm report
src/com/supplysphere/engine/ModuleReport.java - Algorithm demonstrations
src/com/supplysphere/engine/EngineDemos.java
Supply operations
- Operations facade
src/com/supplysphere/ops/OperationsService.java - Supply network
src/com/supplysphere/ops/SupplyNetwork.java - Network loading
src/com/supplysphere/ops/SupplyNetworkLoader.java - Delivery jobs
src/com/supplysphere/ops/JobSet.java - Batch code validation
src/com/supplysphere/algorithm/randomised/MillerRabin.java - Duplicate detection
src/com/supplysphere/algorithm/suffixstructures/SimilarityIndex.java
Algorithm implementations
- Retrieval algorithms
src/com/supplysphere/algorithm/stringalgorithms - Fuzzy matching
src/com/supplysphere/algorithm/dp/EditDistance.java - Similarity index
src/com/supplysphere/algorithm/suffixstructures/SimilarityIndex.java - Flow network model
src/com/supplysphere/algorithm/flow/FlowNetwork.java - Max-flow analysis
src/com/supplysphere/algorithm/flow/Dinic.java - Flow certificate
src/com/supplysphere/algorithm/flow/FlowResult.java - Delivery scheduling
src/com/supplysphere/algorithm/np/SchedulingApprox.java
Shared domain
- Article documents
src/com/supplysphere/dataset/Article.java - Search configuration
src/com/supplysphere/core/config/AppConfig.java - Text utilities
src/com/supplysphere/core/util/Text.java - Input validation
src/com/supplysphere/core/util/Preconditions.java - Domain errors
src/com/supplysphere/core/util/DomainException.java
Other components
- User
Connections 36
- User → Command console: issues commands
- User → Web dashboard and API: uses dashboard
- Application launcher → Command console: launches
src/SupplySphereApp.java - Command console → Search facade: requests search
src/com/supplysphere/ui/SearchConsole.java - Web dashboard and API → Search facade: serves search
src/com/supplysphere/web/WebApp.java - Command console → Operations facade: requests operations
src/com/supplysphere/ui/SearchConsole.java - Web dashboard and API → Operations facade: serves operations
src/com/supplysphere/web/WebApp.java - Search facade → Corpus loading: loads corpus
src/com/supplysphere/service/SearchService.java - Search facade → Article repository: stores articles
src/com/supplysphere/service/SearchService.java - Corpus loading → Article documents: creates articles
src/com/supplysphere/dataset/CorpusLoader.java - Search facade → Query engine: delegates searches
src/com/supplysphere/service/SearchService.java - Search facade → Search configuration: configures search
src/com/supplysphere/service/SearchService.java - Query engine → Article documents: indexes documents
src/com/supplysphere/engine/QueryEngine.java - Query engine → Retrieval algorithms: dispatches matching
src/com/supplysphere/engine/QueryEngine.java - Query engine → Fuzzy matching: computes fuzzy matches
src/com/supplysphere/engine/QueryEngine.java - Query engine → Similarity index: ranks topical matches
src/com/supplysphere/engine/QueryEngine.java - Query engine → Ranked reports: builds reports
src/com/supplysphere/engine/QueryEngine.java - Search facade → Ranked reports: returns reports
src/com/supplysphere/service/SearchService.java - Operations facade → Network loading: loads network
src/com/supplysphere/ops/OperationsService.java - Network loading → Supply network: builds network
src/com/supplysphere/ops/SupplyNetworkLoader.java - Operations facade → Supply network: analyzes network
src/com/supplysphere/ops/OperationsService.java - Operations facade → Flow network model: constructs flow input
src/com/supplysphere/ops/OperationsService.java - Operations facade → Max-flow analysis: runs max flow
src/com/supplysphere/ops/OperationsService.java - Max-flow analysis → Flow network model: traverses residual graph
src/com/supplysphere/algorithm/flow/Dinic.java - Max-flow analysis → Flow certificate: produces certificate
src/com/supplysphere/algorithm/flow/Dinic.java - Operations facade → Delivery jobs: loads jobs
src/com/supplysphere/ops/OperationsService.java - Operations facade → Delivery scheduling: plans deliveries
src/com/supplysphere/ops/OperationsService.java - Operations facade → Batch code validation: checks primality
src/com/supplysphere/ops/OperationsService.java - Operations facade → Duplicate detection: ranks duplicates
src/com/supplysphere/ops/OperationsService.java - Search facade → Duplicate detection: compares corpus
- Command console → Algorithm report: displays choices
src/com/supplysphere/ui/SearchConsole.java - Command console → Algorithm demonstrations: shows demonstrations
src/com/supplysphere/ui/SearchConsole.java - Article documents → Text utilities: normalizes text
src/com/supplysphere/dataset/Article.java - Retrieval algorithms → Input validation: validates inputs
src/com/supplysphere/algorithm/stringalgorithms/RabinKarp.java - Search configuration → Input validation: validates settings
src/com/supplysphere/core/config/AppConfig.java - Input validation → Domain errors: raises failures
src/com/supplysphere/core/util/Preconditions.java