Package org.yamcs.xtce.util
Class ArgumentReference
- java.lang.Object
-
- org.yamcs.xtce.util.NameReference
-
- org.yamcs.xtce.util.ArgumentReference
-
public class ArgumentReference extends NameReference
Argument references are used in algorithms or match criteria expressions part of transmission constraints or command verifiers. Most references are solved locally, i.e. they refer to arguments directly defined in the command to which the verifier is attached.However sometimes the argument is part of a parent command which is only found when assembling the whole MDB. In those cases, this class is used to store the reference and will be solved at the time of loading the database.
Note that the argument reference is different from the other
NameReference
because it does not contain an absolute path. The Argument references are local to a specific command and its parent hierarchy, not absolute like for a parameter or container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ArgumentReference.ArgumentResolvedAction
-
Nested classes/interfaces inherited from class org.yamcs.xtce.util.NameReference
NameReference.ResolvedAction, NameReference.Type
-
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.util.NameReference
actions, ref, result, type
-
-
Constructor Summary
Constructors Constructor Description ArgumentReference(MetaCommand metaCmd, String argName, PathElement[] path)
ArgumentReference(MetaCommand metaCmd, Argument arg, PathElement[] path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentReference
addResolvedAction(ArgumentReference.ArgumentResolvedAction action)
String
getArgName()
MetaCommand
getMetaCommand()
PathElement[]
getPath()
static ArgumentReference
getReference(MetaCommand metaCmd, String argRef)
void
resolved(Argument argument, PathElement[] path)
-
Methods inherited from class org.yamcs.xtce.util.NameReference
addResolvedAction, getReference, getType, isAbsolute, isResolved, resolved, toString
-
-
-
-
Constructor Detail
-
ArgumentReference
public ArgumentReference(MetaCommand metaCmd, String argName, PathElement[] path)
-
ArgumentReference
public ArgumentReference(MetaCommand metaCmd, Argument arg, PathElement[] path)
-
-
Method Detail
-
resolved
public void resolved(Argument argument, PathElement[] path)
-
addResolvedAction
public ArgumentReference addResolvedAction(ArgumentReference.ArgumentResolvedAction action)
-
getMetaCommand
public MetaCommand getMetaCommand()
-
getArgName
public String getArgName()
-
getPath
public PathElement[] getPath()
-
getReference
public static ArgumentReference getReference(MetaCommand metaCmd, String argRef)
-
-