Class PreparedCommand


  • public class PreparedCommand
    extends Object
    This class is to keep track of a command binary and source included
    • Constructor Detail

      • PreparedCommand

        public PreparedCommand​(org.yamcs.protobuf.Commanding.CommandId id)
      • PreparedCommand

        public PreparedCommand​(byte[] binary)
        Used for testing the uplinkers
        Parameters:
        binary -
    • Method Detail

      • getGenerationTime

        public long getGenerationTime()
      • setSource

        public void setSource​(String source)
      • getSource

        public String getSource()
      • setComment

        public void setComment​(String comment)
      • getComment

        public String getComment()
      • getCmdName

        public String getCmdName()
      • getStringAttribute

        public String getStringAttribute​(String attrname)
      • getAttribute

        public org.yamcs.protobuf.Commanding.CommandHistoryAttribute getAttribute​(String name)
      • getId

        public String getId()
      • getOrigin

        public String getOrigin()
      • getSequenceNumber

        public int getSequenceNumber()
      • getCommandName

        public String getCommandName()
      • getCommandId

        public org.yamcs.protobuf.Commanding.CommandId getCommandId()
      • getUUID

        public UUID getUUID()
      • getCommandId

        public static org.yamcs.protobuf.Commanding.CommandId getCommandId​(Tuple t)
      • toTuple

        public Tuple toTuple()
      • setBinary

        public void setBinary​(byte[] b)
      • getUsername

        public String getUsername()
      • getAttributes

        public List<org.yamcs.protobuf.Commanding.CommandHistoryAttribute> getAttributes()
      • fromCommandHistoryEntry

        public static PreparedCommand fromCommandHistoryEntry​(org.yamcs.protobuf.Commanding.CommandHistoryEntry che)
      • setStringAttribute

        public void setStringAttribute​(String name,
                                       String value)
      • addStringAttribute

        public void addStringAttribute​(String name,
                                       String value)
      • addAttribute

        public void addAttribute​(org.yamcs.protobuf.Commanding.CommandHistoryAttribute cha)
      • getBinary

        public byte[] getBinary()
      • setUsername

        public void setUsername​(String username)
      • setMetaCommand

        public void setMetaCommand​(MetaCommand cmd)
      • isPendingTransmissionConstraints

        public boolean isPendingTransmissionConstraints()
      • setPendingTransmissionConstraints

        public void setPendingTransmissionConstraints​(boolean b)
      • getTransmissionContraintCheckStart

        public long getTransmissionContraintCheckStart()
      • setTransmissionContraintCheckStart

        public void setTransmissionContraintCheckStart​(long transmissionContraintCheckStart)
      • setArgAssignment

        public void setArgAssignment​(Map<Argument,​Value> argAssignment,
                                     Set<String> userAssignedArgumentNames)
      • disableTransmissionContraints

        public void disableTransmissionContraints​(boolean b)
      • disableTransmissionContraints

        public boolean disableTransmissionContraints()
        Returns:
        true if the transmission constraints have to be disabled for this command
      • disableCommandVerifiers

        public boolean disableCommandVerifiers()
        Returns:
        true if the command verifiers have to be disabled for this command
      • disableCommandVerifiers

        public void disableCommandVerifiers​(boolean b)
      • addVerifierConfig

        public void addVerifierConfig​(String name,
                                      org.yamcs.protobuf.Commanding.VerifierConfig verifierConfig)
      • getVerifierOverride

        public Map<String,​org.yamcs.protobuf.Commanding.VerifierConfig> getVerifierOverride()
        Returns:
        a list of command verifiers options overriding MDB settings.