项目作者: AnkitDroidGit

项目描述 :
Hello World Example using Agera
高级语言: Java
项目地址: git://github.com/AnkitDroidGit/Agera-Hello-World-Example.git
创建时间: 2017-12-11T11:22:08Z
项目社区:https://github.com/AnkitDroidGit/Agera-Hello-World-Example

开源协议:

下载


Hello-World-By-Agera

Hello World Example using Agera

Observable, Updatable, Supplier, Receiver

The foundation of Agera is a set of very simple interfaces including: Observable, Updatable, Supplier and Receiver:

  • Observable => Something that can be observed for changes and stores a list of updatable objects. When a change occurs, the updatables are poked
  • Updatable => Called when an event has occurred. Its update() method will be called when the class it observes changes, but can also be called manually to force an update.
  • Supplier => Something that supplies data when the get() method is called. In this case, “Data” can be anything.
  • Receiver => Something that can receive (and normally store) a value send to it via accept().
  • Repository => The most important concept in Agera is the Repository. Repositories receive, supply, and store data and emit updates. The interfaces Observable, Supplier and Receiver are combined into two types of repositories:
  1. Repository can replace Observable and Supplier
  2. MutableRepository can replace Observable, Supplier and Receiver
This replacement is shown in Agera-Repositories project.

More sample are Here.

This Link can be seen for more documents/tutorials.

let’s connect to learn together

License

  1. Copyright 2017 Ankit Kumar
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.