com.nodelab.interest

Type YieldComponents

com.nodelab.0.10185
Instance of Type
Inheriting from Calculator

This table shows both the actual and the theoretical quotes of the interests of the yield.

Type dataValue
org.uninode.Type.displayPatterna {att:org.uninode.Node.type}
org.uninode.Resource.resourceType
org.uninode.Resource.label
org.uninode.Resource.resourceOfList{}
org.uninode.Listable.resourcesReference[org.uninode.Listable.resources] of com.nodelab.interest.YieldComponents

Attribute summaryDefined inUninode® IdPropertiesDefault
Reference[org.uninode.Listable.resources]resourcesListableorg.uninode.0.2001type
StringtoString
This is the display string.
Nodeorg.uninode.0.102
Typetype
The type of an object determines the behaviour and attributes of the object.
Nodeorg.uninode.0.101
StringuriNodeorg.uninode.0.103
StringlabelResourceorg.uninode.0.2041type
List[Type]resourceOfResourceorg.uninode.0.2042type
SignatureresourceType
This defines the type of resource. It can be 'view', 'adapter' or 'action'
Resourceorg.uninode.0.2043type

Method summaryDefined inOverridesProperties
voidactivateListable
voiddesignEditor(WidgetWorkspace ws)Listable
voidgenerateScript(ScriptGenerationInfo info)
Prepare and generate initialization code
ScriptGenerator
voidinstanceScript(ScriptGenerationInfo info)
return either variable name (like 'ave1', found in info), or a constructor call (new ...)
ScriptGenerator
BooleanisResourceOf(Listable listable, Signature aspect)Mixabletype
ListablemixOn(Mixable mix)Mixable
ListablemixWith(Mixable mix)Mixable
StringresourceStringListableintrospection
voidcom.nodelab.java.view.ActivateViewListable
Intcom.nodelab.java.view.ActorCountView
Actorcom.nodelab.java.view.ActorForSoView
Actorcom.nodelab.java.view.AddSourceSoView
voidcom.nodelab.java.view.ConstructorView
voidcom.nodelab.java.view.DesignViewWWView
Dimensioncom.nodelab.java.view.DimensionAtInView
Intcom.nodelab.java.view.DimensionCountView
Dimensioncom.nodelab.java.view.DimensionTypeTyView
voidcom.nodelab.java.view.DragMouseReReReReView
voidcom.nodelab.java.view.GenerateScriptSIViewScriptGenerator
Actorcom.nodelab.java.view.GetActorInView
voidcom.nodelab.java.view.InstallView
voidcom.nodelab.java.view.InstanceScriptSIViewScriptGenerator
Booleancom.nodelab.java.view.IsPerpetualView
voidcom.nodelab.java.view.PrepareView
Collection[Type]com.nodelab.java.view.RequiredDimensionsView
Scenecom.nodelab.java.view.SceneView
WidgetWorkspacecom.nodelab.java.view.WorkspaceView

Script summary
com.nodelab.0.10387
/*
constructor() {
  View:();
}
class Boolean isResource(Object owner, Symbol aspect) {
  if (aspect == #views) return true;
  false;
}
class String resourceName() "Name of resource" {
  "yield components";
}
Collection[Class] requiredConditions() {
  #(ConditionMaturity, ConditionHistory);
}
trace Void designCalculator(WidgetWorkspace ws) {
  Yield yield = Yield{partAt(0)};
  Set[TimeData] components = Set[TimeData]{yield.aspectValue(#components)};
  if (components == null) return;
  Array2D[Object] array = new Array2D(Object, 7, components.size);
  0 .to(components.size - 1, Void(Int r) {
    TimeData comp = components.at(r);
    array.set(0, r, comp.source);
    array.set(1, r, comp.time);
    array.set(2, r, comp.maturity);
    array.set(3, r, comp.coupon);
    array.set(4, r, comp.value);
  });
  ws.addTable(new Place(0, 0).setWeight(1.0, 1.0, #both).setPadding(20, 4), 
    array, #("name", "time", "maturity", "coupon", "bid", "theo", "diff"), true);
*/
/*
  Condition condition = conditionAt(0);
  condition.collectSteps();
  condition.collectSizeSteps(this, 200);
  Collection[Object] steps = condition.steps;
  List[Real] values = new List(Real);
  partAt(0).source.collectValues(values, condition.id, steps);
  0 .to(steps.size - 1, Void(Int i) {
    array.set(0, i, steps.at(i));
    array.set(1, i, values.at(i));
  });
*/
//}