|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.template.flow.StepMatrix
public class StepMatrix
Allowed routes between template flows and their steps are defined by
BitSet matrix of size (n+1)*(n+1), where n is the number of
steps in a flow. Index 0 is reserved to define access to step into and out
from the flow.
| Constructor Summary | |
|---|---|
StepMatrix(int count)
Constructs a default step matrix. |
|
StepMatrix(int count,
BitSet set)
Constructs a step matrix with routes. |
|
StepMatrix(int count,
boolean enabled)
Constructs an enabled or disabled step matrix. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy of this matrix. |
Object |
clone(int count)
Returns a copy of this matrix with a different number of steps. |
boolean |
get()
Gets all routes in this matrix. |
boolean |
get(int index)
Gets the routes of the specified step. |
boolean |
get(int source,
int target)
Gets the route between steps. |
BitSet |
getBitSet()
Gets the route set. |
int |
getCount()
Gets the number of steps. |
boolean |
getFrom(int source)
Gets the routes from the specified step. |
boolean |
getTo(int target)
Gets the routes to the specified step. |
void |
reset()
Resets default routes. |
void |
reset(int index)
Resets default routes of the specified step. |
void |
reset(int source,
int target)
Resets the default route between steps. |
void |
resetFrom(int source)
Resets default routes from the specified step. |
void |
resetTo(int target)
Resets default routes to the specified step. |
void |
set(boolean flag)
Sets all routes in this matrix. |
void |
set(int index,
boolean flag)
Sets the routes of the specified step. |
void |
set(int source,
int target,
boolean flag)
Sets the route between steps. |
void |
setFrom(int source,
boolean flag)
Sets the routes from the specified step. |
void |
setTo(int target,
boolean flag)
Sets the routes to the specified step. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StepMatrix(int count)
count - the number of steps.
public StepMatrix(int count,
boolean enabled)
count - the number of steps.enabled - true for enabled, false for disabled.
public StepMatrix(int count,
BitSet set)
count - the number of steps.set - the enabled routes.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic Object clone(int count)
count - the number of steps.
public int getCount()
public BitSet getBitSet()
public boolean get()
public void set(boolean flag)
flag - true if enabled, otherwise false.public boolean get(int index)
index - the index of the step.
public void set(int index,
boolean flag)
index - the index of the step.flag - true if enabled, otherwise false.public boolean getFrom(int source)
source - the index of the source step.
public void setFrom(int source,
boolean flag)
source - the index of the source step.flag - true if enabled, otherwise false.public boolean getTo(int target)
target - the index of the target step.
public void setTo(int target,
boolean flag)
target - the index of the target step.flag - true if enabled, otherwise false.
public boolean get(int source,
int target)
source - the index of the source step.target - the index of the target step.
public void set(int source,
int target,
boolean flag)
source - the index of the source step.target - the index of the target step.flag - true if enabled, otherwise false.public void reset()
public void reset(int index)
index - the index of the step.public void resetFrom(int source)
source - the index of the source step.public void resetTo(int target)
target - the index of the target step.
public void reset(int source,
int target)
source - the index of the source step.target - the index of the target step.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||