|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.proactive.ext.migration.MigrationStrategyImpl
public class MigrationStrategyImpl
MigrationStrategyImpl contains destination. It allows us to program an Agent to follow an itinary so that it can perform automaticly some method upon arrival on a site. An migrationStrategy is instanciated by the user.
| Constructor Summary | |
|---|---|
MigrationStrategyImpl()
Creates an empty MigrationStrategyImpl |
|
MigrationStrategyImpl(java.lang.String filename)
Creates an itinary using a text-file. |
|
| Method Summary | |
|---|---|
void |
add(Destination r)
Adds a Destination to an itinary |
void |
add(java.lang.String nodeURL,
java.lang.String method)
|
void |
addNext(Destination r)
Adds a Destination for the next migration |
void |
addNext(java.lang.String nodeURL,
java.lang.String method)
|
void |
decrease()
|
Destination |
getCurrentDestination()
Returns the current Destination. |
Destination |
getNextExcept(java.lang.String s)
Returns the next destination in the migrationStrategy which is not s |
Destination |
next()
Returns the next destination on the list and increase index by one. |
void |
remove(Destination d)
|
void |
remove(java.lang.String nodeURL,
java.lang.String method)
|
void |
reset()
|
int |
size()
|
java.util.Vector<java.lang.String> |
toVector()
Return a java.util.Vector made of strings representing the destinations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MigrationStrategyImpl()
public MigrationStrategyImpl(java.lang.String filename)
| Method Detail |
|---|
public void add(Destination r)
add in interface MigrationStrategy
public void add(java.lang.String nodeURL,
java.lang.String method)
add in interface MigrationStrategypublic void addNext(Destination r)
addNext in interface MigrationStrategy
public void addNext(java.lang.String nodeURL,
java.lang.String method)
addNext in interface MigrationStrategy
public void remove(java.lang.String nodeURL,
java.lang.String method)
remove in interface MigrationStrategypublic void remove(Destination d)
remove in interface MigrationStrategypublic Destination next()
next in interface MigrationStrategypublic Destination getCurrentDestination()
public Destination getNextExcept(java.lang.String s)
public int size()
public void decrease()
public void reset()
reset in interface MigrationStrategypublic java.util.Vector<java.lang.String> toVector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||