Skip to main content
Jump to: navigation, search

BaSyx / Documentation / HashMap Provider

< BaSyx ‎ | Documentation
Revision as of 03:30, 23 August 2019 by Daniel.Espen.iese.fraunhofer.de (Talk | contribs) (Created page with "{| class="wikitable" | Overview <nowiki>|</nowiki> Interface <nowiki>|</no...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Overview | Interface | 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