Skip to content

Commit 243980e

Browse files
committed
Documentation improvements
1 parent 6cb01a2 commit 243980e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointCharacteristics.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ abstract class EndpointCharacteristic extends string {
3131
* This predicate describes what the characteristic tells us about an endpoint.
3232
*
3333
* Params:
34-
* endpointClass: Class 0 is the negative class, containing non-sink endpoints. Each positive int corresponds to a
35-
* single sink type.
34+
* endpointClass: The sink type. Each EndpointType has a predicate getEncoding, which specifies the classifier
35+
* class for this sink type. Class 0 is the negative class (non-sink). Each positive int corresponds to a single
36+
* sink type.
3637
* isPositiveIndicator: If true, this characteristic indicates that this endpoint _is_ a member of the class; if
3738
* false, it indicates that it _isn't_ a member of the class.
3839
* confidence: A float in [0, 1], which tells us how strong an indicator this characteristic is for the endpoint

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointTypes.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ newtype TEndpointType =
1616
abstract class EndpointType extends TEndpointType {
1717
abstract string getDescription();
1818

19+
/**
20+
* The integer representation of this endpoint type. This integer representation specifies the class number used
21+
* by the endpoint scoring model (the classifier) to represent this endpoint type. Class 0 is the negative class
22+
* (non-sink). Each positive int corresponds to a single sink type.
23+
*/
1924
abstract int getEncoding();
2025

2126
string toString() { result = getDescription() }

0 commit comments

Comments
 (0)