org.unizone.finance.interest | ![]() |
org.unizone.0.6320
Instance of Type
Inheriting from Yield
Type data | Value |
org.uninode.Type.displayPattern | {att:org.unizone.source.Source.displayName} |
org.unizone.source.Source.valueAttribute | |
org.uninode.Listable.resources | Reference[org.uninode.Listable.resources] of org.unizone.finance.interest.YieldLinear |
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 | ||
TimeSeries[YieldData] | data | Yield | org.unizone.0.6301 | ||
String | displayName The display name is the name that is shown in lists, displays and graphs. | Source | org.unizone.0.4001 | essential | |
Attribute | valueAttribute The value attribute is used for determining the default value that should be used for displaying this source in a graph. | Source | org.unizone.0.4011 | type inheritValue | |
Signature | valueType The value type determines which axes should be used in graphs. | Source | org.unizone.0.4002 | inheritValue |
Method summary | Defined in | Overrides | Properties | |
void | activate | Listable | ||
void | checkRange | Source | ||
void | collectSteps(List steps, Dimension dimensionType) | Source | ||
void | collectValues(List steps, List values, Type dimensionType) | Source | ||
void | designEditor(WidgetWorkspace ws) | Listable | ||
Real | evaluate | Source | ||
void | generateScript(ScriptGenerationInfo info) | Source | ScriptGenerator | |
Boolean | isResourceOf(Listable listable, Signature aspect) | Mixable | type | |
Listable | mixOn(Mixable mix) | Mixable | ||
Listable | mixWith(Mixable mix) | Mixable | ||
String | resourceString | Listable | introspection | |
Real | timeseries(Signature aspect) | Source | ||
Signature | valueType | Source | introspection | |
void | com.nodelab.java.source.Activate | Source | Listable | |
Listable | com.nodelab.java.source.MixWithMi | Source | Mixable |
Script summary |
org.unizone.0.8540/** * WARNING: Not checked */ /* instance Collection[InstrumentTBill] tbills; instance Collection[InstrumentBond] bonds; constructor() { Yield:(); } Void setTBills(Collection[InstrumentTBill] tbills) { instance tbills = tbills; tbills.do(Void(InstrumentInterest i) {addNextSource(i)}); } Void setBonds(Collection[InstrumentBond] bonds) { instance bonds = bonds; bonds.do(Void(InstrumentInterest i) {addNextSource(i)}); } Collection[InstrumentTBill] tbills() { instance tbills; } Collection[InstrumentBond] bonds() { instance bonds; } Object preferredFrom(Condition condition) { if (condition.class == ConditionHistory) return Time{ConditionHistory{condition}.to}.addDays(-30); TimeBuffer:preferredFrom(condition); } TimeData createData(Time time, Symbol resolution) { Producer.report("Preparing " + toString() + " at " + time.toString); List[TimeData] tbillData = new List(TimeData); List[TimeData] bondData = new List(TimeData); external cond_history = time; Int i = 0; Real bid; while (i < instance tbills.size) { InstrumentTBill tbill = instance tbills.at(i); bid = tbill.aspectReal(#value); if (bid != null && bid != 0) { TimeData data = data.setAspect(#maturity, bond.aspectValue(#maturity)); data.setAspect(#coupon, bond.aspectValue(#coupon)); if (data.maturity.subtractDate(time) > 365) bondData.add(data); } i = i + 1; } Time lastTime; tbillData.do(Void(TimeData d) { if (lastTime == null' ' d.time > lastTime) lastTime = d.time; }); bondData.do(Void(TimeData d) { if (lastTime == null' ' d.time > lastTime) lastTime = d.time; }); YieldLinearData yData = new YieldLinearData(this, lastTime); if (!yData.formatCurve(tbillData, bondData)) return null; yData; } */ |