Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kenwebb
Last active December 6, 2017 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwebb/84f383b5b5af2309182ef06525eca1e4 to your computer and use it in GitHub Desktop.
Save kenwebb/84f383b5b5af2309182ef06525eca1e4 to your computer and use it in GitHub Desktop.
search term - port
<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Wed Dec 06 2017 10:47:16 GMT-0500 (EST)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: search term - port
Description:
Url: http://www.primordion.com/Xholon/gwt/
InternalName: 84f383b5b5af2309182ef06525eca1e4
Keywords:
My Notes
--------
December 6, 2017
I'm doing a search for "port", to see what new things I might dredge up.
My ideas:
- ports enable interaction between/amongst nodes
References
----------
(1) search (google): port graph
(2) https://arxiv.org/pdf/1107.2006.pdf
Port-Hamiltonian systems on graphs, A.J. van der Schaft and B.M. Maschke, August 25, 2012
(3) http://dutiosb.twi.tudelft.nl/~jeltsema/Book/PHSystemsTheory_printedbook.pdf
Port-Hamiltonian Systems Theory: An Introductory Overview, Arjan van der Schaft and Dimitri Jeltsema, book 2014
(4) https://en.wikipedia.org/wiki/Bond_graph
A bond graph is a graphical representation of a physical dynamic system. It allows the conversion of the system into a state-space representation. It is similar to a block diagram or signal-flow graph, with the major difference that the arcs in bond graphs represent bi-directional exchange of physical energy, while those in block diagrams and signal-flow graphs represent uni-directional flow of information. Bond graphs are multi-energy domain (e.g. mechanical, electrical, hydraulic, etc) and domain neutral. This means a bond graph can incorporate multiple domains seamlessly.
(5) https://github.com/lukepur/vue-port-graph
) https://lukepur.github.io/vue-port-graph/#/
) https://www.npmjs.com/package/vue-port-graph
Graph a layout of nodes with ports. Supports drag and drop event handling for ports.
(6) http://dcs.gla.ac.uk/~oandrei/docs/thesis-OAndrei.pdf
A Rewriting Calculus for Graphs: Applications to Biology and Autonomous Systems, by Oana Andrei, thesis 2008
includes category theory
3.10 Comparison with Bigraphical Reactive Systems
(7) http://porgy.labri.fr/
PORGY - The visual graph rewriting platform
(8) https://hal.archives-ouvertes.fr/hal-00772820/file/PORGY.pdf
PORGY: A Visual Graph Rewriting Environment for Complex Systems, Bruno Pinaud, Guy Melançon, Jonathan Dubois, 2012
]]></Notes>
<_-.XholonClass>
<!-- domain objects -->
<PhysicalSystem/>
<Block/>
<Brick/>
<!-- quantities -->
<Height superClass="Quantity"/>
</_-.XholonClass>
<xholonClassDetails>
<Block>
<port name="height" connector="Height"/>
</Block>
</xholonClassDetails>
<PhysicalSystem>
<Block>
<Height>0.1 m</Height>
</Block>
<Brick multiplicity="2"/>
</PhysicalSystem>
<Blockbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var a = 123;
var b = 456;
var c = a * b;
if (console) {
console.log(c);
}
]]></Blockbehavior>
<Heightbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
var myHeight, testing;
var beh = {
postConfigure: function() {
testing = Math.floor(Math.random() * 10);
myHeight = this.cnode.parent();
},
act: function() {
myHeight.println(this.toString());
},
toString: function() {
return "testing:" + testing;
}
}
]]></Heightbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
$wnd.xh.Brickbehavior = function Brickbehavior() {}
$wnd.xh.Brickbehavior.prototype.postConfigure = function() {
this.brick = this.cnode.parent();
this.iam = " red brick";
};
$wnd.xh.Brickbehavior.prototype.act = function() {
this.brick.println("I am a" + this.iam);
};
]]></Brickbehavior>
<Brickbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[
console.log("I'm another brick behavior");
]]></Brickbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Block</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
<g>
<title>Height</title>
<rect id="PhysicalSystem/Block/Height" fill="#6AB06A" height="50" width="10" x="80" y="0"/>
</g>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment