User Tools

Site Tools


dana-system-calls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dana-system-calls [2018/06/17 08:09]
barryfp
dana-system-calls [2019/07/16 09:58]
barryfp [dana.getObjectInterface(IDC source, Object o, Type t)]
Line 18: Line 18:
  
 This converts an integer value in Dana's format for integer representation (i.e. network big endian) to the host machine'​s native format. This converts an integer value in Dana's format for integer representation (i.e. network big endian) to the host machine'​s native format.
- 
-==== dana.isConnected(IDC intf) ==== 
- 
-This operation checks if a particular required interface is connected to something, returning true if so and false otherwise. 
  
 ===== Runtime adaptation ==== ===== Runtime adaptation ====
- 
-==== dana.rewire(IDC intfA, IDC intfB) ==== 
- 
-This connects a required interface (intfA) to a provided interface (intfB). 
- 
-==== dana.pause(IDC intf) ==== 
- 
-This pauses a selected required interface of a given component, meaning that any attempts to instantiate new objects via this required interface, or destroy existing objects, are held until the required interface is resumed. 
- 
-==== dana.resume(IDC intf) ==== 
- 
-This resumes a previously paused required interface of a given component, releasing any held operations and allowing objects to be instantiated and destroyed again via this required interface. 
- 
-==== dana.getComponent(IDC requiredInterface) ==== 
- 
-Typically used as part of runtime adaptation, this operation queries the given required interface to return the component to which it is currently connected (or null if it has no current wiring). 
- 
-==== dana.getObjects(IDC intfA) ==== 
- 
-Typically used as part of runtime adaptation, this gets a list of currently-active objects instantiated over the given required interface (intfA). 
  
 ==== dana.pauseObject(IDC com, Object o) ==== ==== dana.pauseObject(IDC com, Object o) ====
Line 52: Line 28:
  
 Typically used as part of runtime adaptation, this re-enables function calls to enter the given object, and also resumes any previous held calls. Typically used as part of runtime adaptation, this re-enables function calls to enter the given object, and also resumes any previous held calls.
- 
-==== dana.constructObject(IDC source) ==== 
- 
-Typically used as part of runtime adaptation, instantiates a new object from source. Note that this operation does not call the constructor of the object being instantiated. 
- 
-==== dana.getObjectState(IDC source, Object o) ==== 
- 
-Typically used as part of runtime adaptation, retrieves the transfer state of an object, returned as a Data instance. This state can then be injected into another object using ''​setObjectState''​. 
- 
-==== dana.setObjectState(IDC source, Object o, Data d) ==== 
- 
-Typically used as part of runtime adaptation, injects the given transfer state into an object. 
  
 ==== dana.getObjectInterface(IDC source, Object o, Type t) ==== ==== dana.getObjectInterface(IDC source, Object o, Type t) ====
  
-Typically used as part of runtime adaptation, this operation queries the given object for an interface of the given type, returning the same instance of that object ​by with the type of the requested interface (if present).+Typically used as part of runtime adaptation, this operation queries the given object for an interface of the given type, returning the same instance of that object ​but with the type of the requested interface (if present).
  
 ==== dana.rewireObject(Object x, Object y) ==== ==== dana.rewireObject(Object x, Object y) ====
dana-system-calls.txt ยท Last modified: 2019/07/16 10:49 by barryfp