Skip to content

Commit a23e774

Browse files
committed
fixing javadocs
1 parent 8778e54 commit a23e774

File tree

14 files changed

+33
-35
lines changed

14 files changed

+33
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/bin/
22
/target/
3+
/javadocs/
34
/.settings/
45
/.idea/
56
/mylog*.txt

src/main/java/eu/iv4xr/framework/extensions/ltl/BuchiModelChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public SATVerdict sat(LTL<IExplorableState> phi) {
7272
* execution that would be accepted by the given Buchi automaton. If so SAT is
7373
* returned, and else UNSAT. <b>Be careful</b> that this method may not
7474
* terminate if the target program has an infinite state space. Use
75-
* {@link #sat(Predicate, int)} instead.
75+
* {@link #sat(Buchi, int)} instead.
7676
*/
7777
public SATVerdict sat(Buchi buchi) {
7878
return sat(buchi, Integer.MAX_VALUE) ;

src/main/java/eu/iv4xr/framework/extensions/ltl/LTL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public String toString() {
331331

332332
/**
333333
* For representing "phi || psi". We could define this as
334-
* a derived operator "not(not phi && not psi)", but for
334+
* a derived operator "not(not phi &and; not psi)", but for
335335
* e.g. translation to Buchi we need to be able to structurally
336336
* identify the "phi || psi" pattern. So we add this explicit
337337
* representation.
@@ -701,7 +701,7 @@ public static <State> Not<State> ltlNot(LTL<State> phi) {
701701
}
702702

703703
/**
704-
* ltlAnd(phi1, ..., phin ) constructs the LTL formula "phi1 && phi2 ... && phin".
704+
* ltlAnd(phi1, ..., phin ) constructs the LTL formula "phi1 &and; phi2 ... &and; phin".
705705
*/
706706
public static <State> And<State> ltlAnd(LTL<State>... phis) {
707707
if (phis == null)

src/main/java/eu/iv4xr/framework/extensions/ltl/LTL2Buchi.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* exclude the following patterns:
1414
*
1515
* <ol>
16-
* <li> The translator does not handle conjunctions "phi && psi";
16+
* <li> The translator does not handle conjunctions "phi &and; psi";
1717
* <li> also does not handle left-recursive until and weak-until.
1818
* E.g. "(p U q) U r" cannot be handled.
1919
* </ol>
@@ -23,10 +23,10 @@
2323
*
2424
* <ol>
2525
* <li> "not X phi" to "X not phi"
26-
* <li> "not(phi && psi)" to "(not phi) || (not psi)"
27-
* <li> "not(phi || psi)" to "(not phi) && (not psi)"
28-
* <li> "not(phi U psi) to "(phi && not psi) W (not phi && not psi)"
29-
* <li> "not(phi W psi) to "(phi && not psi) U (not phi && not psi)"
26+
* <li> "not(phi &and; psi)" to "(not phi) || (not psi)"
27+
* <li> "not(phi || psi)" to "(not phi) &and; (not psi)"
28+
* <li> "not(phi U psi) to "(phi &and; not psi) W (not phi &and; not psi)"
29+
* <li> "not(phi W psi) to "(phi &and; not psi) U (not phi &and; not psi)"
3030
* </ol>
3131
*
3232
* After the normalization, a Buchi automaton is constructed recursively.
@@ -57,7 +57,7 @@
5757
* the combined Buchi. We remove S2, and change every transition that goes
5858
* from or to S2 to go from/to S1.
5959
*
60-
* <li> phi && psi. Not implemented. TODO.
60+
* <li> phi &and; psi. Not implemented. TODO.
6161
*
6262
* </ol>
6363
*
@@ -161,7 +161,7 @@ public static <State> Not<State> isNotNot(LTL<State> psi) {
161161
}
162162

163163
/**
164-
* Recognize "not(p && ... && q)" . Returns "p && ... && q".
164+
* Recognize "not(p &and; ... &and; q)" . Returns "p &and; ... &and; q".
165165
*/
166166
public static <State> And<State> isNotAnd(LTL<State> psi) {
167167
var f = isNotPhi(psi) ;
@@ -606,16 +606,16 @@ private static <A> Pair<A,A> swap(Pair<A,A> pair) {
606606
* rewrite rules:
607607
*
608608
* <ul>
609-
* <li> p && q = (\s -> p(s) && q(s))
610-
* <li> f && (g || h) = (f && g) || (f && h)
611-
* <li> p && (f U g) = (p && g) || (p && f && X(f U g))
612-
* <li> p && (f W g) = (p && g) || (p && f && X(f W g))
613-
* <li> Xf && Xg = X(f && g)
614-
* <li> (*) Xf && (g U h) = (Xf && h) || (g && X(f && (g U h))
615-
* <li> (*) Xf && (g W h) = (Xf && h) || (g && X(f && (g W h)))
616-
* <li> (a U b) && (f U g) = (a && f U (b && (f U g))) || (a && f U (g && (a U b)))
617-
* <li> (a U b) && (f W g) = (a && f U (b && (f W g))) || (a && f U (g && (a U b))) ... notice that two U in the middle. They are correct.
618-
* <li> (a W b) && (f W g) = (a && f W (b && (f W g))) || (a && f W (g && (a U b)))
609+
* <li> p &and; q = (\s -> p(s) &and; q(s))
610+
* <li> f &and; (g || h) = (f &and; g) || (f &and; h)
611+
* <li> p &and; (f U g) = (p &and; g) || (p &and; f &and; X(f U g))
612+
* <li> p &and; (f W g) = (p &and; g) || (p &and; f &and; X(f W g))
613+
* <li> Xf &and; Xg = X(f &and; g)
614+
* <li> (*) Xf &and; (g U h) = (Xf &and; h) || (g &and; X(f &and; (g U h))
615+
* <li> (*) Xf &and; (g W h) = (Xf &and; h) || (g &and; X(f &and; (g W h)))
616+
* <li> (a U b) &and; (f U g) = (a &and; f U (b &and; (f U g))) || (a &and; f U (g &and; (a U b)))
617+
* <li> (a U b) &and; (f W g) = (a &and; f U (b &and; (f W g))) || (a &and; f U (g &and; (a U b))) ... notice that two U in the middle. They are correct.
618+
* <li> (a W b) &and; (f W g) = (a &and; f W (b &and; (f W g))) || (a &and; f W (g &and; (a U b)))
619619
* </ul>
620620
*
621621
* IMPORTANT: the rewrites in (*) unroll the U/W into a X-formula. This
@@ -791,7 +791,7 @@ private static <State> LTL<State> andRewrite(LTL<State> f1, Or<State> f2) {
791791

792792
/**
793793
* Check if the cunjunction is irreducible. It is irreducible if it is of the form
794-
* p && Xphi. Such a form cannot be further rewritten.
794+
* p &and; Xphi. Such a form cannot be further rewritten.
795795
*/
796796
public static <State> boolean isIrreducibleConj(And<State> phi) {
797797
if (phi.conjuncts.length != 2) return false ;

src/main/java/eu/iv4xr/framework/extensions/ltl/SequencePredicate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* invoke {@link #endChecking()}
3535
* <li>(d) invoke {@link #sat()} to get the result.
3636
* </ol>
37-
* </ol>
37+
* </ul>
3838
*
3939
* @author Wish
4040
*/

src/main/java/eu/iv4xr/framework/extensions/pathfinding/Sparse2DTiledSurface_NavGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* These are tiles that block movement through them. There are two types: Wall and
1515
* Door. A wall is always non-navigable. A door can be made blocking/unblocking.
1616
*
17-
* <p>The class also implements {@link Xnavigatable}, so it offers methods to do
17+
* <p>The class also implements {@link XPathfinder}, so it offers methods to do
1818
* pathfinding and exploration over the world.
1919
*
2020
* @author Wish

src/main/java/eu/iv4xr/framework/goalsAndTactics/Sa1Solver.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ public enum Policy { NEAREST_TO_AGENT, NEAREST_TO_TARGET, RANDOM }
135135
* <li> Else, the agent check if there is a reachable entity e whose properties satisfy
136136
* the given selector, and not yet tried before. If there is such an e, the agent
137137
* moves to it and interacts with it. Then it repeats from step-1.
138-
* <li> If there is no such e in step-3, the agent checks if there the world has some
138+
* <li> If there is no such e in step-3, the agent checks if the world has some
139139
* unvisited place (has some area to explore). If so, the agent explores for some budget,
140-
* then we
141-
* it should be a "switch"). This e is interacted
140+
* then we go back to step-3.
141+
* <li> If there is no more place to explore, the search fails.
142+
* </ol>
142143
*/
143144

144145
public GoalStructure solver(BasicAgent agent,

src/main/java/eu/iv4xr/framework/mainConcepts/IEmotionState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* A generic interface for representing the emotional state of an agent. Since
77
* this is only an interface, you need to provide a concrete implementation of
88
* it. To use it, attach it to an emotional-test-agent using
9-
* {@link EmotiveTestAgent#attachEmptionState(IEmotionState)}. Then, whenever
9+
* {@link EmotiveTestAgent#attachEmotionState(IEmotionState)}. Then, whenever
1010
* the agent is updated (through a call to its {@link EmotiveTestAgent#update()}
1111
* method), it will also update the emotion-state attached to it by calling the
1212
* method {@link #updateEmotion(EmotiveTestAgent)}.

src/main/java/eu/iv4xr/framework/mainConcepts/Iv4xrAgentState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* {@link WorldModel}. And, along with it it can also hold a navigation graph to
1919
* facilitate automated navigation over the target world.
2020
*
21-
* @param NavgraphNode The type of the nodes in {@link #worldNavigation}, or the type
21+
* The type paremeter NavgraphNode represents the type of the nodes in {@link #worldNavigation}, or the type
2222
* that is used to identify the nodes.
2323
*
2424
* @author Wish

src/main/java/eu/iv4xr/framework/spatial/meshes/Face.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public float distFromPoint(Vec3 w, ArrayList<Vec3> concreteVertices) {
253253
}
254254

255255
/**
256-
* Clamping x between 0 and 1. That is, if x<=0, we return 0, if x>=1 we return
256+
* Clamping x between 0 and 1. That is, if x&le;0, we return 0, if x&ge;1 we return
257257
* 1, and else the original x is returned.
258258
*/
259259
static float clamp(float x) {

0 commit comments

Comments
 (0)