All Projects → LittleLollipop → Lbox

LittleLollipop / Lbox

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Lbox

Css In Js Utils
Useful utility functions for CSS in JS solutions
Stars: ✭ 61 (-47.41%)
Mutual labels:  utils
Mpermissionutils
Android6.0 运行时权限处理工具类
Stars: ✭ 84 (-27.59%)
Mutual labels:  utils
Jerryutil
java常用工具类集合
Stars: ✭ 102 (-12.07%)
Mutual labels:  utils
Openllet
Openllet is an OWL 2 reasoner in Java, build on top of Pellet.
Stars: ✭ 66 (-43.1%)
Mutual labels:  logic
Hr
A horizontal 📏 for your terminal
Stars: ✭ 1,195 (+930.17%)
Mutual labels:  utils
Shareutil
社会化登录分享工具库
Stars: ✭ 1,275 (+999.14%)
Mutual labels:  utils
Bash Utils
utils for shell
Stars: ✭ 58 (-50%)
Mutual labels:  utils
Nalu
Basic pytorch implementation of NAC/NALU from Neural Arithmetic Logic Units paper by trask et.al
Stars: ✭ 110 (-5.17%)
Mutual labels:  logic
Favicon Switcher
Make favicon react on media queries
Stars: ✭ 76 (-34.48%)
Mutual labels:  utils
Ionic Collection
🤘 Looking for about Ionic Framework?
Stars: ✭ 101 (-12.93%)
Mutual labels:  utils
Schematics Utilities
🛠️ Useful exported utilities for working with Schematics
Stars: ✭ 73 (-37.07%)
Mutual labels:  utils
Statusbarutil
A util for setting status bar style on Android App.
Stars: ✭ 8,726 (+7422.41%)
Mutual labels:  utils
Bash Utility
Bash library which provides utility functions and helpers for functional programming in Bash.
Stars: ✭ 92 (-20.69%)
Mutual labels:  utils
Countdowntask
⌛️A countdown library for Android.
Stars: ✭ 64 (-44.83%)
Mutual labels:  utils
Utils.js
Fast, small and purely functional utility library
Stars: ✭ 102 (-12.07%)
Mutual labels:  utils
Digital
A digital logic designer and circuit simulator.
Stars: ✭ 1,108 (+855.17%)
Mutual labels:  logic
Changelog Linker
[READ-ONLY] Make CHANGELOG.md Useful with Links
Stars: ✭ 85 (-26.72%)
Mutual labels:  utils
Rails stuff
Collection of useful modules for Rails.
Stars: ✭ 110 (-5.17%)
Mutual labels:  utils
Ppo
ppo is a super small and useful utils library for JavaScript 🐝🐜
Stars: ✭ 105 (-9.48%)
Mutual labels:  utils
Torchelie
Torchélie is a set of utility functions, layers, losses, models, trainers and other things for PyTorch.
Stars: ✭ 98 (-15.52%)
Mutual labels:  utils

LBox

中文

Logic Box

Logic Box is a lightweight implementation package of basic abstract logic These include:

  • State machine
  • Method chain
  • Manifold valve
  • Task trigger

State Machine

https://github.com/LittleLollipop/LBox/blob/master/design/StateMachine.png

The state machine in this library only provides the operating mechanism, and the state is completely defined by the subclass.

To ensure orderly behavior in the state machine, the core logic runs in an independent thread.

The state transition can be triggered by calling the changeState method. The state transition has three steps, check change, state in, and state leave. The three method calls are executed in the internal thread of the state machine in sequence.

  • The check change will pass in the new state of the attempt to migrate and the current state. The developer needs to decide whether the migration can be performed based on the design and other data is complete. If the migration is not possible, the process will end immediately.

  • State leave is called after the check change, where the developer handles the cleanup work needed to leave the current state.

  • State in is called after state leave, where the developer handles the initiation of the new state.

Method chain

https://github.com/LittleLollipop/LBox/blob/master/design/Mission.png

The method chain is designed to manage a set of tasks or methods in a clear order. By individually defining each step and the method only interacts with the chain, the purpose of separating the top-level business logic is achieved. At the same time, the method-level coupling is also achieved.

Manifold valve

https://github.com/LittleLollipop/LBox/blob/master/design/ManifoldValve.png

A simple process merging tool, in parallel processing, usually has a certain function point, which requires multiple data has been obtained or multiple methods have been executed. In this case, the use of the manifold valve can clearly express the logic.

Task trigger

https://github.com/LittleLollipop/LBox/blob/master/design/TaskLoader.png

Lightweight message queue, for the situation where there are multiple listeners for the same message, different execution levels can be set to process the sequence.

Import

allprojects {
	repositories {
		...
		maven { url 'https://www.jitpack.io' }
	}
}


dependencies {
    implementation 'com.github.LittleLollipop:LBox:0.1.5'
}

License

The MIT License (MIT)

Copyright 2020 LittleLollipop

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].