- java.lang.Object
-
- org.praxislive.code.CodeDelegate
-
- org.praxislive.code.CodeContainerDelegate
-
- org.praxislive.core.code.CoreContainerDelegate
-
- All Implemented Interfaces:
DefaultDelegateAPI
public class CoreContainerDelegate extends CodeContainerDelegate implements DefaultDelegateAPI
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeContainerDelegate
CodeContainerDelegate.ProxyPorts
-
-
Constructor Summary
Constructors Constructor Description CoreContainerDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Hook called whenever the delegate needs to be initialized.void
starting()
Hook called whenever the root is started.void
stopping()
Hook called when the root is stopping.void
update()
Hook called on every clock update.-
Methods inherited from class org.praxislive.code.CodeContainerDelegate
children
-
Methods inherited from class org.praxislive.code.CodeDelegate
ask, ask, async, find, getLookup, isLoggable, log, log, log, log, millis, self, self, tell, tell, tell, tellIn, tellIn, tellIn, time, transmit, transmit, transmit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.praxislive.code.DefaultDelegateAPI
abs, acos, array, array, array, asin, atan, atan2, b, b, b, B, constrain, constrain, cos, d, d, d, D, D, degrees, dist, dist, exp, i, i, i, I, I, lerp, log, map, max, max, max, max, max, max, min, min, min, min, min, min, norm, pow, radians, random, random, randomOf, randomOf, randomOf, round, s, s, S, sin, sq, sqrt, tan, V
-
-
-
-
Method Detail
-
init
public void init()
Hook called whenever the delegate needs to be initialized. Will be called when the root is started, on adding a component to a running root, and any time the code is updated. Because this code is called in a running root, the code should be suitable for real-time usage.- Overrides:
init
in classCodeContainerDelegate
-
starting
public void starting()
Hook called whenever the root is started. This method will be called afterinit()
. It is not called on code updates.
-
update
public void update()
Hook called on every clock update. This will vary depending on the root the component is installed into - it may correspond to every buffer or frame. If a component reacts solely to input and doesn't need to be called every cycle, do not override this method so that the delegate does not have to be connected to the clock (for efficiency).
-
stopping
public void stopping()
Hook called when the root is stopping.
-
-