|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iplan.TimePointNet
public class TimePointNet
Time-point Network.
Nested Class Summary | |
---|---|
(package private) static class |
TimePointNet.Change
|
static class |
TimePointNet.TimeConstraint
An internal representation of temporal "before" constraints. |
Field Summary | |
---|---|
(package private) static Symbol |
BEFORE
Syntax word. |
(package private) static Symbol |
DURATION
Syntax word. |
protected ContextMap |
knownPoints
|
protected ContextInt |
numberOfPoints
|
protected TimePoint |
timePointAtZero
|
(package private) static Symbol |
WINDOW
Syntax word. |
Constructor Summary | |
---|---|
TimePointNet()
Constructs an empty time-point network. |
Method Summary | |
---|---|
void |
addConstraint(Constraint c)
|
void |
addConstraint(PNode node,
Constraint c)
|
void |
addOrdering(java.util.Map idToNodeMap,
Ordering ord)
|
boolean |
addTimeConstraint(TimePoint pre,
TimePoint post,
long min,
long max)
|
void |
addTimeConstraintElseFail(TimePoint pre,
TimePoint post)
|
TimePoint |
addTimePoint(long min,
long max)
|
TimePoint |
addTimePoint(TimePoint t)
|
void |
clear()
|
(package private) void |
constrainMax(TimePoint pre,
TimePoint post,
long len)
|
(package private) void |
constrainMin(TimePoint pre,
TimePoint post,
long len)
|
protected void |
deleteTimeConstraint(TimePointNet.TimeConstraint c)
Removes the constraint from its pre- and post-points. |
void |
describeTPN(java.io.PrintStream out)
|
void |
evalAtBegin(PNodeEnd ne,
Constraint c)
|
void |
evalAtEnd(PNodeEnd ne,
Constraint c)
|
protected void |
evalBeforeConstraint(PNode node,
Constraint c)
|
protected void |
evalConstraint(PNode node,
Constraint c)
|
protected void |
evalDurationConstraint(PNode node,
Constraint c)
|
protected void |
evalWindowAtConstraint(PNode node,
Constraint c)
|
(package private) boolean |
findMaxValues(java.util.List initialActivePoints)
|
(package private) boolean |
findMinValues(java.util.List initialActivePoints)
|
protected int |
getNumberOfPoints()
|
void |
makeTimePointAtZero()
|
boolean |
mightInteract(PNodeEnd ne1,
Constraint c1,
PNodeEnd ne2,
Constraint c2)
|
protected boolean |
propagateAfterAdding(TimePointNet.TimeConstraint c)
|
void |
registerWith(ConstraintManagerRegistry r)
|
void |
reset()
|
(package private) void |
undoTpnChanges(java.util.List changeHistory)
|
protected boolean |
updateTimeWindows(java.util.List initialPoints)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ContextMap knownPoints
protected ContextInt numberOfPoints
protected TimePoint timePointAtZero
static final Symbol DURATION
static final Symbol BEFORE
static final Symbol WINDOW
Constructor Detail |
---|
public TimePointNet()
Method Detail |
---|
protected int getNumberOfPoints()
public void registerWith(ConstraintManagerRegistry r)
registerWith
in interface ConstraintManager
public void reset()
reset
in interface ConstraintManager
public void clear()
clear
in interface ConstraintManager
public void addConstraint(Constraint c)
addConstraint
in interface ConstraintManager
java.lang.UnsupportedOperationException
- if called.public void addOrdering(java.util.Map idToNodeMap, Ordering ord)
public void addConstraint(PNode node, Constraint c)
addConstraint
in interface ConstraintManager
protected void evalConstraint(PNode node, Constraint c)
protected void evalDurationConstraint(PNode node, Constraint c)
protected void evalBeforeConstraint(PNode node, Constraint c)
protected void evalWindowAtConstraint(PNode node, Constraint c)
public void evalAtBegin(PNodeEnd ne, Constraint c)
evalAtBegin
in interface ConstraintManager
public void evalAtEnd(PNodeEnd ne, Constraint c)
evalAtEnd
in interface ConstraintManager
java.lang.UnsupportedOperationException
- if called.public boolean mightInteract(PNodeEnd ne1, Constraint c1, PNodeEnd ne2, Constraint c2)
mightInteract
in interface ConstraintManager
java.lang.UnsupportedOperationException
- if called.public TimePoint addTimePoint(long min, long max)
public TimePoint addTimePoint(TimePoint t)
public void makeTimePointAtZero()
public void addTimeConstraintElseFail(TimePoint pre, TimePoint post)
public boolean addTimeConstraint(TimePoint pre, TimePoint post, long min, long max)
protected void deleteTimeConstraint(TimePointNet.TimeConstraint c)
public void describeTPN(java.io.PrintStream out)
protected boolean propagateAfterAdding(TimePointNet.TimeConstraint c)
protected boolean updateTimeWindows(java.util.List initialPoints)
boolean findMinValues(java.util.List initialActivePoints)
void constrainMin(TimePoint pre, TimePoint post, long len)
void undoTpnChanges(java.util.List changeHistory)
boolean findMaxValues(java.util.List initialActivePoints)
void constrainMax(TimePoint pre, TimePoint post, long len)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |