| com.nodelab.interest | ![]() |
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 data | Value |
| org.uninode.Type.displayPattern | a {att:org.uninode.Node.type} |
| org.uninode.Resource.resourceType | |
| org.uninode.Resource.label | |
| org.uninode.Resource.resourceOf | List{} |
| org.uninode.Listable.resources | Reference[org.uninode.Listable.resources] of com.nodelab.interest.YieldComponents |
| Attribute summary | Defined in | Uninode® Id | Properties | Default | |
| Reference[org.uninode.Listable.resources] | resources | Listable | org.uninode.0.2001 | type | |
| String | toString This is the display string. | Node | org.uninode.0.102 | ||
| Type | type The type of an object determines the behaviour and attributes of the object. | Node | org.uninode.0.101 | ||
| String | uri | Node | org.uninode.0.103 | ||
| String | label | Resource | org.uninode.0.2041 | type | |
| List[Type] | resourceOf | Resource | org.uninode.0.2042 | type | |
| Signature | resourceType This defines the type of resource. It can be 'view', 'adapter' or 'action' | Resource | org.uninode.0.2043 | type | |
| 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));
});
*/
//}
|