com.innovativeastrosolutions.astrosoftcore.beans.MuhurthaBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AstrosoftCore Show documentation
Show all versions of AstrosoftCore Show documentation
https://github.com/erajasekar/AstrosoftCore
The newest version!
/**
* MuhurthaBean.java
* Created On 2005, Oct 15, 2005 7:24:41 PM
* @author E. Rajasekar
*/
package com.innovativeastrosolutions.astrosoftcore.beans;
import com.innovativeastrosolutions.astrosoftcore.consts.DisplayFormat;
import com.innovativeastrosolutions.astrosoftcore.consts.MuhurthaRank;
import com.innovativeastrosolutions.astrosoftcore.consts.Nakshathra;
import com.innovativeastrosolutions.astrosoftcore.consts.Rasi;
/**
* Class holds Muhurtha Transit Information
*/
public class MuhurthaBean {
private Interval period;
private Interval longitude;
private MuhurthaRank rank;
private Nakshathra nak;
private Rasi rasi;
public MuhurthaBean(Interval period, Interval longitudes, MuhurthaRank rank) {
this.period = period;
this.longitude = longitudes;
this.rank = rank;
nak = Nakshathra.ofDeg(longitudes.getStart());
rasi = Rasi.ofDeg(longitudes.getStart());
}
public Interval getPeriod() {
return period;
}
public Interval getLongitude() {
return longitude;
}
public MuhurthaRank getRank() {
return rank;
}
public Nakshathra getNakshathra() {
return nak;
}
public Rasi getRasi() {
return rasi;
}
public String toString() {
StringBuffer sb = new StringBuffer(period.toString(DisplayFormat.DATE_TIME) + " -> " + longitude.toString(DisplayFormat.DEG));
sb.append(" -> ");
sb.append("[ " + rasi + " , ");
sb.append(nak + " ] ");
sb.append(rank + "\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy