Class Signature
java.lang.Object
edu.uky.cs.nil.tt.world.Signature
- All Implemented Interfaces:
Logical
A signature is a
logical object that identifies a
parameterized asset in a story world. A signature
is defined by a name and an ordered sequence of 0 to many
values, called its arguments. Signatures make it possible to
tell how different assets of the same type are similar and different from one
another.- Author:
- Stephen G. Ware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns an unmodifiable list of this signature's arguments.inthashCode()substitute(Function<Object, Object> substitution) Returns a logical object identical to this one, except that its logical elements have been replaced according to the given substitution.toString()
-
Field Details
-
name
The signature's name
-
-
Constructor Details
-
Signature
-
-
Method Details
-
equals
-
hashCode
-
toString
-
substitute
Description copied from interface:LogicalReturns a logical object identical to this one, except that its logical elements have been replaced according to the given substitution. A substitution defines how some logical formula (the input to the function) should be replaced with a different formula (the output of the function).- Specified by:
substitutein interfaceLogical- Parameters:
substitution- a function which maps logical formula that should be replaced to the formula they should be replaced with- Returns:
- an identical object, except that its logical formula have been replaced according to the substitution
-
getArguments
-