public abstract class WorksManager extends TaskWorkers
Modifier and Type | Class and Description |
---|---|
(package private) static class |
WorksManager.Buddy |
static interface |
WorksManager.WorksBodyCreator<T extends WorksBody>
Interface for WorksBody Creator
|
protected static class |
WorksManager.YM |
TaskWorkers.TaskSpi0, TaskWorkers.TaskSpi1<T>, TaskWorkers.TaskSpi2<T,U>, TaskWorkers.TaskSpi3<T,U,V>, TaskWorkers.TaskSpi4<T,U,V,W>, TaskWorkers.TaskSpi5<T,U,V,W,X>, TaskWorkers.TaskSpi6<T,U,V,W,X,Y>, TaskWorkers.WorkerTask
Modifier and Type | Field and Description |
---|---|
(package private) WorksGraph.Config |
grapher |
(package private) Map<EdbEID,WorksManager.Buddy> |
m_buddies |
protected int |
Reference_Day |
protected int |
Reference_Month |
protected int |
Reference_YearDelta |
(package private) Set<EdbEID> |
s_budied |
(package private) Set<EdbEID> |
s_solos |
(package private) File |
works_topDir |
Constructor and Description |
---|
WorksManager() |
WorksManager(EDB edb) |
WorksManager(EDB edb,
int th) |
WorksManager(int th) |
Modifier and Type | Method and Description |
---|---|
boolean |
buddyIsSucceededBy(EdbEID eid,
Set<EdbEID> eids) |
EdbDoc.Content |
createDateContent(EdbDate d) |
abstract EdbDoc.Content |
createHTMLFooter(WorksPage page) |
abstract EdbDoc.Content |
createHTMLHeader(WorksPage page,
String title) |
EdbDoc.Container |
createLatinDescription(boolean vertical) |
EdbDoc.Container |
createLatinValue(int num) |
EdbDoc.Content |
createPeriodContent(EdbDate2 basePeriod,
EdbDate2 p) |
EdbDoc.Content |
createPeriodContent(EdbDate2 basePeriod,
WorksPage.FMT fmt,
EdbDate2 p) |
EdbDoc.Container |
createYearsHeader() |
EdbDate |
dateCeil(EdbDate date) |
EdbDate |
dateFloor(EdbDate date) |
List<EdbEID> |
getBuddies(EdbEID eid) |
EdbDate |
getDateFrom()
Get start date.
|
EdbDate |
getDateTo()
Get end date.
|
EDB |
getEDB()
Get EDB context.
|
WorksGraph.Config |
getGrapher()
Get grapher
|
EdbDate2 |
getPeriod()
Get period to resolve.
|
WorksStratum<? extends WorksBody,? extends WorksBody> |
getPredecessor(EdbEID eid,
EdbEID pre) |
File |
getTopDir() |
int |
getYears()
Get number of years to resolve.
|
int |
getYthFromDate(EdbDate date)
Get y-th from date.
|
boolean |
isFiscal()
Get fiscal.
|
abstract boolean |
isOmitted(EdbEIDHolder eh) |
EdbDate2 |
periodExpand(EdbDate2 p) |
double |
periodToMonths(EdbDate2 p)
期間から月数を計算する.
年月日の日は無視する.(始まりの月は1日,終りの月は月末とみなす.)
|
void |
registBuddy(UDict dict) |
(package private) void |
registSuccessor(EdbEID eid,
EdbEID suc) |
(package private) void |
registSuccessor(WorksStratum<? extends WorksBody,? extends WorksBody> ws,
EdbEID suc) |
protected void |
setEDB(EDB edb)
Set EDB context.
|
protected void |
setFiscal(boolean f)
Set fiscal.
|
protected void |
setGrapher(WorksGraph.Config g)
Set grapher
|
protected void |
setTerm(EdbDate f,
EdbDate t) |
protected void |
setTerm(int fy,
int ty,
boolean f) |
protected void |
setTopDir(File dir) |
protected void |
setYears(int years)
Set number of years to resolve.
|
EdbDate |
y2begin(int y)
Get begin date of y-th year.
|
EdbDate |
y2end(int y)
Get end date of y-th year.
|
String |
y2name_ja(int y)
Get year (A.D.) to Japanese ERA: 平成○○年 (or 年度).
|
String |
y2name(int y)
Get year (A.D.) to ○○○○年 (or 年度).
|
EdbDate2 |
y2period(int y)
Get period of y-th year.
|
EdbDate |
y2referenceDate(int y)
Get reference date of y-th year.
|
int |
y2year(int y)
Convert y-th year to year (A.D.).
|
String |
year_mode_string() |
EdbDate |
year2begin(int year)
Get begin date of year.
|
EdbDate |
year2end(int year)
Get end date of year.
|
String |
year2name_ja(int year)
Get year (A.D.) to Japanese ERA: 平成○○年 (or 年度).
|
String |
year2name(int year)
Get year (A.D.) to ○○○○年 (or 年度).
|
currentThreadIsWorker, getTaskQueueSize, getWorkers, hasFreeTaskSpace, hasFreeWorker, hasTasks, moveTaskToAhead, numberOfWorkers, offerTask, offerTask, offerTask, offerTask, offerTask, offerTask, offerTask, offerTask, offerTask, offerTask, printWorkersStatistics, printWorkersStatistics, resetWorkersStatistics, setParentTaskWorkers, setTaskQueueSize, setWorkerAsDaemon, setWorkerKeepAlive, setWorkerPriority, setWorkers, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, startWorker, waitForTask, waitForTasks, waitForWorkers
protected int Reference_YearDelta
protected int Reference_Month
protected int Reference_Day
WorksGraph.Config grapher
File works_topDir
Map<EdbEID,WorksManager.Buddy> m_buddies
public WorksManager(int th)
public WorksManager()
public WorksManager(EDB edb)
public WorksManager(EDB edb, int th)
protected void setEDB(EDB edb)
edb
- EDB Contextpublic final EDB getEDB()
protected final void setYears(int years)
years
- number of years.public final int getYears()
protected final void setFiscal(boolean f)
f
- fiscal if true.public final boolean isFiscal()
public final String year_mode_string()
protected final void setTerm(int fy, int ty, boolean f)
public final EdbDate getDateFrom()
public final EdbDate getDateTo()
public final EdbDate2 getPeriod()
public final String year2name(int year)
year
- year.public final String year2name_ja(int year)
year
- year.public final String y2name(int y)
y
- y-th year.public final String y2name_ja(int y)
y
- y-th year.public final EdbDate year2begin(int year)
year
- year.public final EdbDate year2end(int year)
year
- year.public final int y2year(int y)
y
- y-th (0,1.2...).public final EdbDate y2begin(int y)
y
- y-th (0,1.2...).public final EdbDate y2end(int y)
y
- y-th (0,1.2...).public final EdbDate2 y2period(int y)
y
- y-th (0,1.2...).public final EdbDate y2referenceDate(int y)
y
- y-th (0,1.2...).public final int getYthFromDate(EdbDate date)
date
- date.public final EdbDoc.Container createYearsHeader()
protected void setGrapher(WorksGraph.Config g)
g
- Grapher.public WorksGraph.Config getGrapher()
public abstract EdbDoc.Content createHTMLHeader(WorksPage page, String title)
public abstract EdbDoc.Content createHTMLFooter(WorksPage page)
public abstract boolean isOmitted(EdbEIDHolder eh)
public final double periodToMonths(EdbDate2 p)
p
- 期間.protected void setTopDir(File dir)
public File getTopDir()
public EdbDoc.Content createPeriodContent(EdbDate2 basePeriod, EdbDate2 p)
public EdbDoc.Content createPeriodContent(EdbDate2 basePeriod, WorksPage.FMT fmt, EdbDate2 p)
public EdbDoc.Content createDateContent(EdbDate d)
public EdbDoc.Container createLatinDescription(boolean vertical)
public EdbDoc.Container createLatinValue(int num)
void registSuccessor(WorksStratum<? extends WorksBody,? extends WorksBody> ws, EdbEID suc)
public void registBuddy(UDict dict) throws UTLFException
UTLFException
public WorksStratum<? extends WorksBody,? extends WorksBody> getPredecessor(EdbEID eid, EdbEID pre)
EDB Working Group at Tue Jun 10 17:08:59 JST 2025