Class: When::CalendarTypes::CalendarNote::HinduNoteDetailed

Inherits:
HinduNote show all
Defined in:
lib/when_exe/region/indian.rb

Overview

日の出の九惑星の位置まで計算

Constant Summary

Constants inherited from HinduNote

When::CalendarTypes::CalendarNote::HinduNote::NoteConsts, When::CalendarTypes::CalendarNote::HinduNote::NoteObjects

Constants inherited from When::CalendarTypes::CalendarNote

BahaiNotes, ChineseNotes, DefaultNotes, JavaneseNotes, JulianDayNotes, MayanNotes, TibetanNotes, YiNotes

Constants included from Parts::Resource

Parts::Resource::LabelProperty

Instance Attribute Summary

Attributes inherited from When::CalendarTypes::CalendarNote

#event

Attributes inherited from TM::ReferenceSystem

#domain_of_validity, #position

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#_pool, #child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods inherited from HinduNote

#_to_date_for_note, #karana, #naksatra, #pancanga, #tithi, #yoga

Methods inherited from When::CalendarTypes::CalendarNote

#copy, #day, #duration, #enum_for, #include?, #month, #note?, #notes, #year

Methods inherited from TM::ReferenceSystem

#domain, #name

Methods included from Parts::Resource

#[], #^, _decode, _encode, _extract_prefix, _instance, _parse, _path_with_prefix, _replace_tags, _setup_, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?

Methods included from Parts::Resource::Pool

#[], #[]=, #_pool, #_setup_, #pool_keys

Methods included from Parts::Resource::Synchronize

#synchronize

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::Parts::Resource

Instance Method Details

#vara(dates) ⇒ Array<When::TM::TemporalPosition, Hash{ 惑星シンボル=>惑星の真黄経 }>

ヴァーラ (七曜)と九惑星の位置


1058
1059
1060
1061
1062
1063
1064
1065
1066
# File 'lib/when_exe/region/indian.rb', line 1058

def vara(dates)
  rise        =  dates.rises[0]
  rise.events = [dates.root['vara'][(rise.to_i+1) % 7]]
  t           = dates.formula.is_dynamical ? +rise : rise.to_f
  [rise, dates.formula.graha.keys.inject({}) {|h,p|
    h.store(p, dates.formula.graha[p].true_longitude(t))
    h
  }]
end