forked from yuangu/sxtwl_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsxtwl.java
More file actions
59 lines (46 loc) · 2.06 KB
/
sxtwl.java
File metadata and controls
59 lines (46 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.seantone.sxtwl;
public class sxtwl implements sxtwlConstants {
public static Day fromSolar(int year, short month, int day) {
long cPtr = sxtwlJNI.fromSolar(year, month, day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public static Day fromLunar(int year, short month, int day, boolean isRun) {
long cPtr = sxtwlJNI.fromLunar__SWIG_0(year, month, day, isRun);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public static Day fromLunar(int year, short month, int day) {
long cPtr = sxtwlJNI.fromLunar__SWIG_1(year, month, day);
return (cPtr == 0) ? null : new Day(cPtr, false);
}
public static JDList siZhu2Year(GZ year, GZ yue, GZ ri, GZ shi, int fromYear, int toYear) {
return new JDList(sxtwlJNI.siZhu2Year(GZ.getCPtr(year), year, GZ.getCPtr(yue), yue, GZ.getCPtr(ri), ri, GZ.getCPtr(shi), shi, fromYear, toYear), true);
}
public static GZ getShiGz(short dayTg, short hour, boolean isZaoWanZiShi) {
return new GZ(sxtwlJNI.getShiGz__SWIG_0(dayTg, hour, isZaoWanZiShi), true);
}
public static GZ getShiGz(short dayTg, short hour) {
return new GZ(sxtwlJNI.getShiGz__SWIG_1(dayTg, hour), true);
}
public static short getRunMonth(int By) {
return sxtwlJNI.getRunMonth(By);
}
public static short getLunarMonthNum(int By, short month, boolean isRun) {
return sxtwlJNI.getLunarMonthNum__SWIG_0(By, month, isRun);
}
public static short getLunarMonthNum(int By, short month) {
return sxtwlJNI.getLunarMonthNum__SWIG_1(By, month);
}
public static Time JD2DD(double jd) {
return new Time(sxtwlJNI.JD2DD(jd), true);
}
public static double toJD(Time time) {
return sxtwlJNI.toJD(Time.getCPtr(time), time);
}
}