Package jadex.bridge.component.impl
Class ExecutionComponentFeature.StepInfo
- java.lang.Object
-
- jadex.bridge.component.impl.ExecutionComponentFeature.StepInfo
-
- All Implemented Interfaces:
java.lang.Comparable<ExecutionComponentFeature.StepInfo>
- Enclosing class:
- ExecutionComponentFeature
public static class ExecutionComponentFeature.StepInfo extends java.lang.Object implements java.lang.Comparable<ExecutionComponentFeature.StepInfo>
Info struct for steps.
-
-
Field Summary
Fields Modifier and Type Field Description protected jadex.commons.future.Future<?>
future
The result future.protected int
priority
The priority.protected IComponentStep<?>
step
The component step.protected int
stepcnt
The number of the step (preserve insert order of same prio).protected jadex.commons.future.ThreadLocalTransferHelper
transfer
The service call.
-
Constructor Summary
Constructors Constructor Description StepInfo(IComponentStep<?> step, jadex.commons.future.Future<?> future, jadex.commons.future.ThreadLocalTransferHelper transfer, int priority, int stepcnt)
Create a new StepInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ExecutionComponentFeature.StepInfo o)
Compare two steps.jadex.commons.future.Future<?>
getFuture()
Get the future.int
getPriority()
Get the priority.IComponentStep<?>
getStep()
Get the step.int
getStepCount()
Get the stepcnt.jadex.commons.future.ThreadLocalTransferHelper
getTransfer()
Get the transfer.void
setFuture(jadex.commons.future.Future<?> future)
Set the future.void
setPriority(int priority)
The priority to set.void
setStep(IComponentStep<?> step)
Set the step.void
setStepCount(int stepcnt)
The stepcnt to set.void
setTransfer(jadex.commons.future.ThreadLocalTransferHelper transfer)
The transfer to set.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
step
protected IComponentStep<?> step
The component step.
-
future
protected jadex.commons.future.Future<?> future
The result future.
-
transfer
protected jadex.commons.future.ThreadLocalTransferHelper transfer
The service call.
-
priority
protected int priority
The priority.
-
stepcnt
protected int stepcnt
The number of the step (preserve insert order of same prio).
-
-
Constructor Detail
-
StepInfo
public StepInfo(IComponentStep<?> step, jadex.commons.future.Future<?> future, jadex.commons.future.ThreadLocalTransferHelper transfer, int priority, int stepcnt)
Create a new StepInfo.
-
-
Method Detail
-
getStep
public IComponentStep<?> getStep()
Get the step.- Returns:
- The step.
-
setStep
public void setStep(IComponentStep<?> step)
Set the step.- Parameters:
step
- The step to set.
-
getFuture
public jadex.commons.future.Future<?> getFuture()
Get the future.- Returns:
- The future.
-
setFuture
public void setFuture(jadex.commons.future.Future<?> future)
Set the future.- Parameters:
future
- The future to set.
-
getTransfer
public jadex.commons.future.ThreadLocalTransferHelper getTransfer()
Get the transfer.- Returns:
- The transfer
-
setTransfer
public void setTransfer(jadex.commons.future.ThreadLocalTransferHelper transfer)
The transfer to set.- Parameters:
transfer
- The transfer to set
-
getPriority
public int getPriority()
Get the priority.- Returns:
- The priority
-
setPriority
public void setPriority(int priority)
The priority to set.- Parameters:
priority
- The priority to set
-
getStepCount
public int getStepCount()
Get the stepcnt.- Returns:
- The stepcnt
-
setStepCount
public void setStepCount(int stepcnt)
The stepcnt to set.- Parameters:
stepcnt
- The stepcnt to set
-
compareTo
public int compareTo(ExecutionComponentFeature.StepInfo o)
Compare two steps.- Specified by:
compareTo
in interfacejava.lang.Comparable<ExecutionComponentFeature.StepInfo>
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
-
-