Skip to main content
Jump to: navigation, search

Difference between revisions of "BaSyx / Documentation / HashMap Provider"

(Created page with "{| class="wikitable" | Overview <nowiki>|</nowiki> Interface <nowiki>|</no...")
 
m (Modifies header navigation for providers)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{| class="wikitable"
 
{| class="wikitable"
| [[BaSyx_/_Documentation_/_HashMap_Provider| Overview]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_VAB_Provider_Interface| Interface]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_HashMap_Provider_Implementation| Implementation]]
+
| [[BaSyx_/_Documentation_/_VAB_Providers_| Overview]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_HashMap_Provider_| HashMap provider]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_Lambda_Provider_| Lambda provider]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_FileSystem_Provider_| FileSystem provider]]  <nowiki>|</nowiki>  [[BaSyx_/_Documentation_/_VAB_Provider_Implementation_| Implementation]]
 
|}
 
|}
  
The HashMap provider is one of the basic providers in the BaSyx SDK for generic models. A HashMap serves as the root element for storing the contained data. By allowing child elements to be HashMaps and Collections, arbitrary hierarchical objects can be represented. Thus, the [[BaSyx.VAB_|Virtual Automation Bus]] does not only support BaSys components but can also handle other data structures. Consider the following example:
+
The HashMap provider is one of the basic providers in the BaSyx SDK for generic models. A HashMap serves as the root element for storing the contained data. By allowing child elements to be HashMaps and Collections, arbitrary hierarchical objects can be represented. Thus, the [[BaSyx_/_Documentation_/_VAB|Virtual Automation Bus]] does not only support BaSys components but can also handle other data structures. Consider the following example:
  
 
<syntaxhighlight lang="java" style="margin-left: 4em">
 
<syntaxhighlight lang="java" style="margin-left: 4em">

Latest revision as of 03:29, 23 August 2019

Overview | HashMap provider | Lambda provider | FileSystem provider | Implementation

The HashMap provider is one of the basic providers in the BaSyx SDK for generic models. A HashMap serves as the root element for storing the contained data. By allowing child elements to be HashMaps and Collections, arbitrary hierarchical objects can be represented. Thus, the Virtual Automation Bus does not only support BaSys components but can also handle other data structures. Consider the following example:

{
	"name" : "MyElement",
	"operation" : calculateSomething(),
	"data" : {
		"type" : "boolean",
		"value" : true
	} 
}

Internally, there is a reference to a single HashMap with three entries: name, operation and data. The first two are single elements directly stored in the root HashMap, whereas the last one is an additional HashMap containing two basic data elements.

Back to the top