org.unizone.finance.interest

Type YieldLinear

org.unizone.0.6320
Instance of Type
Inheriting from Yield

Type dataValue
org.uninode.Type.displayPattern{att:org.unizone.source.Source.displayName}
org.unizone.source.Source.valueAttribute
org.uninode.Listable.resourcesReference[org.uninode.Listable.resources] of org.unizone.finance.interest.YieldLinear

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
TimeSeries[YieldData]dataYieldorg.unizone.0.6301
StringdisplayName
The display name is the name that is shown in lists, displays and graphs.
Sourceorg.unizone.0.4001essential
AttributevalueAttribute
The value attribute is used for determining the default value that should be used for displaying this source in a graph.
Sourceorg.unizone.0.4011type
inheritValue
SignaturevalueType
The value type determines which axes should be used in graphs.
Sourceorg.unizone.0.4002inheritValue

Method summaryDefined inOverridesProperties
voidactivateListable
voidcheckRangeSource
voidcollectSteps(List steps, Dimension dimensionType)Source
voidcollectValues(List steps, List values, Type dimensionType)Source
voiddesignEditor(WidgetWorkspace ws)Listable
RealevaluateSource
voidgenerateScript(ScriptGenerationInfo info)SourceScriptGenerator
BooleanisResourceOf(Listable listable, Signature aspect)Mixabletype
ListablemixOn(Mixable mix)Mixable
ListablemixWith(Mixable mix)Mixable
StringresourceStringListableintrospection
Realtimeseries(Signature aspect)Source
SignaturevalueTypeSourceintrospection
voidcom.nodelab.java.source.ActivateSourceListable
Listablecom.nodelab.java.source.MixWithMiSourceMixable

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;
}
*/