Commit 47d820bd authored by Kristof Szabados's avatar Kristof Szabados
Browse files

running can also have index redirection.


Signed-off-by: Kristof Szabados's avatarkristof <Kristof.Szabados@ericsson.com>
parent de23c556
......@@ -214,6 +214,7 @@ public final class ComponentRunnningExpression extends Expression_Value {
}
expression.expression.append(".running(");
//FIXME add support for index redirection
expression.expression.append("null");
expression.expression.append(')');
}
}
......@@ -235,7 +235,9 @@ public final class TimerRunningExpression extends Expression_Value {
public void generateCodeExpressionExpression(final JavaGenData aData, final ExpressionStruct expression) {
reference.generateCode(aData, expression);
generateCodeExpressionOptionalFieldReference(aData, expression, reference);
expression.expression.append(".running()");
//TODO: handle index redirection
expression.expression.append(".running(");
//FIXME add support for index redirection
expression.expression.append("null");
expression.expression.append(')');
}
}
......@@ -195,8 +195,8 @@ public class TitanComponent extends Base_Type {
return TTCN_Runtime.component_killed(componentValue);
}
// originally running, TODO needs index redirection support
public boolean running() {
// originally running
public boolean running(final Index_Redirect index_redirection) {
if (componentValue == UNBOUND_COMPREF) {
throw new TtcnError("Performing running operation on an unbound component reference.");
}
......
......@@ -282,7 +282,6 @@ public class TitanTimer {
* originally running(Index_Redirect*)
*/
public boolean running(final Index_Redirect index_redirect) {
//FIXME handle redirection
return isStarted && TTCN_Snapshot.timeNow() < timeExpires;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment